You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the motor update method (await db.collection.update_one) I allowed to pass the query to perform an atomic update. And in my model (Document class) I would like to use atomic query validations in the MyModel.update() method as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
In the motor update method (await db.collection.update_one) I allowed to pass the query to perform an atomic update. And in my model (Document class) I would like to use atomic query validations in the MyModel.update() method as well.
Is there a way to do this in the Beanie model?
Beta Was this translation helpful? Give feedback.
All reactions