Preserve field order between $set clause and updated document

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Environment:
      mongodb 4.0.4
    • Query 2020-11-30, Query 2020-12-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using { $set:{ b:1, a:1 } } for updating results in { a:1, b:1 }.

      If I use older version like mongodb 3.4.0, the result will be { b:1, a:1 }.

            Assignee:
            Bernard Gorman
            Reporter:
            俊仁 梁
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: