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

Remove callback argument from db.collection helper

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      TheĀ db.collection helper currently accepts an optional callback as the third argument (required when using "strict mode"); this should be removed along with strict mode in 4.0.

      Users migrating to driver 4.0 who wish to ensure operations only execute against existing collections should use db.listCollections directly - the removed strict mode code in the associated PR may serve as a reference for implementation.

            Assignee:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Reporter:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: