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

createCollection does not have strict option

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.6.0
    • Affects Version/s: None
    • Component/s: None
    • 1
    • Not Needed
    • 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?

      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@mongodb.com Bailey Pearson
            Reporter:
            jamie@pensure.dk Jamie Neubert Pedersen
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: