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
await DB.Update<Author>() .Match(a => a.Surname == "Stark") .Modify(a => a.Name, "Brandon") .Modify(a => a.Surname, "The Broken") .ExecuteAsync();
i using Update method, but that entity is not found in database, so how can i add that entity if update not able to find record?
The text was updated successfully, but these errors were encountered:
https://www.mongodb.com/docs/v7.2/reference/method/db.collection.update/#std-label-update-upsert
await DB.Update<Author>() .Match(a => a.Surname == "Stark") .Modify(a => a.Name, "Brandon") .Modify(a => a.Surname, "The Broken") .Option(o => o.IsUpsert = true) //specify update options - upsert .ExecuteAsync();
Sorry, something went wrong.
No branches or pull requests
i using Update method, but that entity is not found in database, so how can i add that entity if update not able to find record?
The text was updated successfully, but these errors were encountered: