BeanieODM / beanie

Asynchronous Python ODM for MongoDB

Home Page:http://beanie-odm.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[DOCUMENTATION] Update & Deleting give wrong example command

wangerone opened this issue · comments

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.

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