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

Establish support for ObjectId as the filter argument to find APIs [non-breaking]

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2

      Use Case

      Currently the Node.js Driver supports receiving an ObjectId in it's Collection.find, findOne, and GridFSBucket.find methods. During command construction it will detect the ObjectId and wrap it in a document that has an "_id" field mapped to the provided ObjectId. The Node DBX team needs to determine the future support or lack of support for this feature via documentation, typescript definitions, and/or findAndModify APIs.

      Dependencies

      • findAndModify command construction
      • Typescript definitions
      • API documentation

      Unknowns

      • How does deprecation look for an undocumented feature?
        • Method overloads
        • union ObjectId with Filter type

      Acceptance Criteria

      Implementation Requirements

      • TBD

      Testing Requirements

      • TBD

      Documentation Requirements

      • TBD

      Follow Up Requirements

      • DevTools depends on this functionality, any planned changes should be communicated as early as possible.

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

              Created:
              Updated: