TypeError: beanie.odm.queries.find.FindOne.update() got multiple values for keyword argument 'response_type' #779
Replies: 3 comments
-
I haven't used it but I found an example from tests that you can look at. https://github.com/roman-right/beanie/blob/main/tests/odm/query/test_update.py#L198 |
Beta Was this translation helpful? Give feedback.
-
Hi, I get the same error when trying to use Looking at the source code of the update method, the But indeed, the documentation should be updated to reflect this, or the code to allow the |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
I was getting
TypeError: beanie.odm.queries.find.FindOne.update() got multiple values for keyword argument 'response_type'
while providing response_type argument to the update method. The code snippet is belowBut it was stated in the docs here that the
.update()
and.upsert()
methods can takeresponse_type
arguments.How do I solve this?
Beta Was this translation helpful? Give feedback.
All reactions