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

Remove callback argument from db.collection helper

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: None
    • Labels:
    • Documentation Changes:
      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

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

                Dates

                Created:
                Updated:
                Resolved: