Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2857

Reorder DBRef fields to have $ref/$id/$db first

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • bson-4.13.0
    • BSON
    • None
    • Fully Compatible

    Description

      The dbref spec (https://github.com/mongodb/specifications/blob/master/source/extended-json.rst) requires that the special fields are first in the hash. I suggest reordering the fields in the constructor which will then automatically produce the correct serialization output e.g. in bson.

      Attachments

        Activity

          People

            neil.shweky@mongodb.com Neil Shweky
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: