Add collation and writeConcern to CreateCollectionOptions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.0.0
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            Anna Herlihy (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: