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

Add collation and writeConcern to CreateCollectionOptions

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.0
    • Component/s: Shell
    • None

      The shell needs to support sending collation and writeconcern to the to the createCollection method, however it seems those options do not exist on the Options object that createCollection takes as an argument: https://github.com/mongodb/node-mongodb-native/blob/4f9d4ceafdcca01d49e6eeb286a9c27ddf485969/src/db.ts#L240

      Perhaps I'm misunderstanding how commands are constructed because the 3.6 docs seem to indicate that both methods are supported. Is there a TS type for the complete options object passed to createCollection?

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: