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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-4.13.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: