Open tfogo opened 6 years ago
If supportsUpsert is set to true and the query upsert=false is sent with a request, upsert is not turned off. See: https://github.com/carbon-io/carbond/blob/master/lib/mongodb/MongoDBCollection.js#L545-L547
supportsUpsert
true
upsert=false
I would expect setting upsert off on the request level to override the setting on the collection level.
@gregbanks should the query be overriding the collection setting here?
If
supportsUpsert
is set totrue
and the queryupsert=false
is sent with a request, upsert is not turned off. See: https://github.com/carbon-io/carbond/blob/master/lib/mongodb/MongoDBCollection.js#L545-L547I would expect setting upsert off on the request level to override the setting on the collection level.