BeanieODM / beanie

Asynchronous Python ODM for MongoDB
http://beanie-odm.dev/
Apache License 2.0
2.02k stars 213 forks source link

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

Open wangerone opened 7 months ago

wangerone commented 7 months ago

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 commented 7 months ago

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