We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on mongodb driver ,l can use find like this.
db.restaurants.find( { _id: 5 } ).readConcern("linearizable").maxTimeMS(10000)
how can l use readConcern on mongoose?
The text was updated successfully, but these errors were encountered:
Test and it works.
Restaurant.find({ _id: 5 }).maxTime(10000).setOptions({ readConcern: { level: 'linearizable' } })
The readConcern options will pass down to node-mongodb-native and parsed there.
Sorry, something went wrong.
I have submitted a pull request to mquery to make readConcern and maxTimeMS work like in mongo shell
EDIT: As of mongoose 5.2.6, you can use the following syntax now. Restaurant.find( { _id: 5 } ).readConcern("linearizable").maxTimeMS(10000)
Restaurant.find( { _id: 5 } ).readConcern("linearizable").maxTimeMS(10000)
2b5e18a
No branches or pull requests
on mongodb driver ,l can use find like this.
db.restaurants.find( { _id: 5 } ).readConcern("linearizable").maxTimeMS(10000)
how can l use readConcern on mongoose?
The text was updated successfully, but these errors were encountered: