Closed alecgibson closed 1 year ago
Fixes https://github.com/chilts/mongodb-queue/issues/38
The mongodb Node.js driver deprecated use of returnOriginal in favour of returnDocument in v3.6.
mongodb
returnOriginal
returnDocument
This non-breaking change allows consumers to opt in to using the newer returnDocument by setting an option on construction
var queue = mongoDbQueue(db, 'queue', { returnDocument : true })
Fixes https://github.com/chilts/mongodb-queue/issues/38
The
mongodb
Node.js driver deprecated use ofreturnOriginal
in favour ofreturnDocument
in v3.6.This non-breaking change allows consumers to opt in to using the newer
returnDocument
by setting an option on construction