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

Offer an EJSON helper tag for template strings

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON, EJSON

      How are you using Mongo? What version of the server and driver are you using?

      What is the feauture/improvement you would like?

      When taking a look at our missing logging I thought up a neat little helper:

      • ejson`sending command ${cmd} to mongodb`
      • Using tagged templates you can detect typeof 'object' and serialize to EJSON
      • Strict EJSON is good for checking the actual types serialized to

      What use case would this feature/improvement enable?

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

              Created:
              Updated: