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

Remove callback argument from db.collection helper

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • Not Needed

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: