Remove callback argument from db.collection helper

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Eric Adum (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: