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
Describe the bug
Defining a document with use_revision=True and keep_nulls=False results in .save() raising OperationFailure when invoked on new documents. I am using beanie==1.26.0.
which tells Mongo to both set revision_id to a value and unset it. This is a result of this Unset operator, which specifies to unset revision_id (as it is, at that point, a top-level None).
(First issue here, thanks for the amazing library)
The text was updated successfully, but these errors were encountered:
Describe the bug
Defining a document with use_revision=True and keep_nulls=False results in .save() raising OperationFailure when invoked on new documents. I am using beanie==1.26.0.
To Reproduce
Expected behavior
I would expect .save() to successfully insert the new document, as stated in the docs.
Additional context
I did some debugging and - I may be wrong but - the issue seems to be with the update query:
which tells Mongo to both set revision_id to a value and unset it. This is a result of this Unset operator, which specifies to unset revision_id (as it is, at that point, a top-level None).
(First issue here, thanks for the amazing library)
The text was updated successfully, but these errors were encountered: