Skip to content

Conversation

alecgibson
Copy link
Collaborator

The mongodb Node.js driver deprecated use of returnOriginal in
favour of returnDocument in v3.6.

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 })

The `mongodb` Node.js driver deprecated use of `returnOriginal` in
favour of `returnDocument` in [v3.6][1].

This non-breaking change allows consumers to opt in to using the newer
`returnDocument` by setting an option on construction

```js
var queue = mongoDbQueue(db, 'queue', { returnDocument : true })
```

[1]: mongodb/node-mongodb-native#2808
Copy link

@ricardoferrolho ricardoferrolho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alecgibson alecgibson merged commit 0e11c97 into main Jun 29, 2021
@alecgibson alecgibson deleted the return-document branch June 29, 2021 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants