Support partial list update with State Management #1129
bushig
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when
use_state_managementis set to True and we modify a list, Beanie generates a query that overrides the entire list. This works well for deleting or changing elements in the list.However, I would like to propose (and hopefully implement) that when we add new elements to the list (with
state_management_replace_objectsset to False), it should generate a $push operation instead.What are your thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions