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
It would be great if we could pass objects as a parameter to the setOnInsert function.
Example (UserData is the document type of the collection):
db.userData.findOneAndUpdate( UserData::username eq username, setOnInsert(UserData()), // <- suggestion findOneAndUpdateUpsert() )
The text was updated successfully, but these errors were encountered:
setValueOnInsert method added
Sorry, something went wrong.
6b404d0
No branches or pull requests
It would be great if we could pass objects as a parameter to the setOnInsert function.
Example (UserData is the document type of the collection):
The text was updated successfully, but these errors were encountered: