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

Support dot notation types in filter keys

    • 2
    • Needed

      Note: This ticket was filed to track the user submitted PR: https://github.com/mongodb/node-mongodb-native/pull/2972

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

      v4.1.1

      What is the feauture/improvement you would like?

      TypeScript hinting support for dotted keys in nested schema (e.g., if my schema has an object { animal: { dog:

      { name: 'Fido' }

      } }, I'd like the type of `animal.dog.name` to evaluate to 'string' )

      What use case would this feature/improvement enable?

      Having type hinting when using a filter object with the find APIs

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            daria.pardue@mongodb.com Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: