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

Add collation and writeConcern to CreateCollectionOptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: