Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4508

Add flag to have BSON deserialize to nested ES Map

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON

      Feature?

      Key order can only be preserved using an ES Map (array like keys are always in numeric order) this has led to issues with sort and index creation. We could utilize a flag to have BSON always use ES Maps when requested.

      Follow up

      Potentially we should subclass Map and add a getEmbedded(key) method that can use dot separated keys to fetch a value instead of m.get(k0)?.get(k1)?.get(k2)

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: