createCollection does not have strict option

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 5.6.0
    • Affects Version/s: None
    • Component/s: None
    • 1
    • Not Needed
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      What problem are you facing?

      I am creating a collection per the docs with the option `{ strict: false }` and I experience an error `MongoServerError: BSON field 'create.strict' is an unknown field`.

      What driver and relevant dependency versions are you using?

      v5.3.0 on Node.js

      Steps to reproduce?

      Install the driver and create a collection.

      ```js
      await db.createCollection<LogDB>('system-log',

      { strict: false }

      )
      ```

              Assignee:
              Bailey Pearson
              Reporter:
              Jamie Neubert Pedersen
              Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: