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
Is your feature request related to a problem? Please describe. Pre-existing documents aren't updated if fresher info is available
Describe the solution you'd like Provide a feature gate mechanism that allows to turn on or off updating documents.
Describe alternatives you've considered Manually overriding documents that aren't copied
Additional context
This is the current implementation where it's decided to return the already saved document.
saveDocument = (document) => { const collection = document.dataSet; const { _id } = document.data; const query = { _id }; return this.db.collection(collection) .findOne(query) .then((result) => { if (result) return this.handleSavedDocument(result); return this.db.collection(collection).insertOne(document.data); }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Pre-existing documents aren't updated if fresher info is available
Describe the solution you'd like
Provide a feature gate mechanism that allows to turn on or off updating documents.
Describe alternatives you've considered
Manually overriding documents that aren't copied
Additional context
This is the current implementation where it's decided to return the already saved document.
The text was updated successfully, but these errors were encountered: