Skip to content

Check writeOptions against the latest insertOne, insertMany, and bulkwrite apis #51

@aljones15

Description

@aljones15

While we are updating the options we might want to compare our current writeOptions:

config.mongodb.writeOptions = {
j: true,
w: 'majority',
multi: true,
forceServerObjectId: true,
};

Against the places where they are used:

http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#insertOne
http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#insertMany
http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#updateOne
http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#updateMany
http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#insertOne
http://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#bulkWrite

Still used:

  • w
  • j
  • forceServerObjectId
  • multi (this appears to have been deprecated in favor of insertOne vs insertMany)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions