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
https://docs.mongodb.com/manual/reference/method/db.collection.update/#replace-a-document-entirely
// fully override the doc Collection.update(id, { a: 10, b: 5 })
The text was updated successfully, but these errors were encountered:
The replacement should be detected when we perform the update. We create a new event type: Event.IS_REPLACEMENT = 'ir'
We only send this event, alongside an update when this is detected.
Create a new method in ObservableCollection, replace(docId, newDocument), this will be similar to update() so we need to re-use some stuff from there.
Sorry, something went wrong.
No branches or pull requests
https://docs.mongodb.com/manual/reference/method/db.collection.update/#replace-a-document-entirely
The text was updated successfully, but these errors were encountered: