Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1701

Warn when user provides EJSON in place where BSON objects are expected

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Bson
    • None
    • Developer Tools

      Sometimes, MongoDB products expose information in EJSON format. It is not obvious to users that this is not the actual format in which data is stored in the database, or that that is not the format which the shell uses to send data to the database.

      To resolve this confusion, we should consider warning users when they provide EJSON in a place in which data gets serialized directly as BSON (e.g. insertOne, find, etc.) without an EJSON deserialization step.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: