PyMongo изменение первых 10 таблиц

использую данный код:

(col.limit(10).update_many({"status": "f"}, {"$set":{"status": "t"}}))

Но получаю данную ошибку:

TypeError: 'Collection' object is not callable. If you meant to call the 'limit' method on a 'Collection' object it is failing because no such method exists.


Ответы (0 шт):