Skip to content
New issue

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

[DOCUMENTATION] Update & Deleting give wrong example command #869

Closed
wangerone opened this issue Feb 20, 2024 · 1 comment
Closed

[DOCUMENTATION] Update & Deleting give wrong example command #869

wangerone opened this issue Feb 20, 2024 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@wangerone
Copy link

https://beanie-odm.dev/tutorial/updating-%26-deleting/

bar = await Product.find_all(Product.price > .5).inc({Product.price: 1})

find_all can not be used with a query, this command will update all documents.

@roman-right
Copy link
Member

True, this is a typo. THank you for the cacth!

@roman-right roman-right added bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers labels Feb 26, 2024
valentinoli added a commit to valentinoli/beanie that referenced this issue Mar 20, 2024
roman-right pushed a commit that referenced this issue Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants