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

Add typings for Map support in bson

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Currently our BSON library uses plain Javascript objects, which does guarantee chronological key ordering if the keys are non-numeric sequences. This presents an issue when a user desires a key like '123' to occur first in a document that also has a key '23'. They will always be ordered in numeric order since they could be considered indexes into an array.

      Acceptance criteria: add typescript annotations onto theĀ serialize function so that it can accept Maps.

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

              Created:
              Updated: