digitalbazaar / bedrock-mongodb

Bedrock mongodb module
Apache License 2.0
2 stars 3 forks source link

Add default writeOption for forceServerObjectId. #37

Closed mattcollier closed 4 years ago

mattcollier commented 4 years ago

Docs on this option here: https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#insertOne

More description: https://jira.mongodb.org/browse/NODE-1160

davidlehn commented 4 years ago

I think this is fine? Is this preventative or was there a reason it needs to be this way?

aljones15 commented 4 years ago

I went ahead and rebased this in as it does not seem to be breaking and setting the _id on server does not matter I believe because we generate ids client side and will be using them to find the document.