Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-628

Make query flag preserve key order in subdocuments

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.0-rc9
    • Component/s: All Tools
    • Labels:

      Right now our tools that use a --query flag can fail in instances of querying against an _id field that has a subdocument, e.g.

      {_id: {a:1, b:2}}
      

      because matching on _id subdocuments is order-dependent. We should add an internal json.UnmarshalToBSOND function to make proper ordering maintained for nested documents

            Assignee:
            Unassigned Unassigned
            Reporter:
            kyle.erf Kyle Erf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: