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
Add support to remove queries
The text was updated successfully, but these errors were encountered:
We can do on normal query:
Person.query.filter({'first_name' : 'John'}).remove_all()
Sorry, something went wrong.
I tried with: Person.query.filter({'first_name' : 'John'}).remove_all()
But get following error message: TypeError: remove_all() takes at least 2 arguments (1 given)
What am I missing here? Thanks!
@zqkou it looks like mongoalchemy now requires a qfield on remove_all. A qfield is an instance of mongoalchemy.QueryField: http://www.mongoalchemy.org/api/expressions/update_expressions.html#mongoalchemy.update_expression.UpdateExpression.remove_all
I'm not very familiar with the recent versions of mongoalchemy, but I can try to dig this up later. I'll reopen this issue.
No branches or pull requests
Add support to remove queries
The text was updated successfully, but these errors were encountered: