Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1100

Support Bulk Write API 2.0

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Needed
    • Hide

      New bulkWrite(...) command for Mongo instances.

      As stated for the driver, this API is meant to replace the existing bulk write API on the Collection as it supports a bulk write across multiple databases and collections in a single call.
      The command uses the active mongosh client and replicates the API from the driver in form of
      Mongo().bulkWrite([

      {namespace: string | Collection /** '<db>.<collection>' */,name: ‘<operation>’,/* Other operation-specific props */}

      , ...]);
      See also: https://github.com/mongodb-js/mongosh/pull/2416

       

      Show
      New bulkWrite(...) command for Mongo instances. As stated for the driver , this API is meant to replace the existing bulk write API on the Collection as it supports a bulk write across multiple databases and collections in a single call. The command uses the active mongosh client and replicates the API from the driver in form of Mongo().bulkWrite([ {namespace: string | Collection /** '<db>.<collection>' */,name: ‘<operation>’,/* Other operation-specific props */} , ...]); See also: https://github.com/mongodb-js/mongosh/pull/2416  

      Support for new BulkWrite API in the MongoDB Shell.

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            jessica.sigafoos@mongodb.com Jessica Sigafoos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: