MongoDB $inc

Hi,

I am searching for help how to increment one field in MongoDB with the phalconphp ODM. Is it possible to use $inc? And how can I perform such a query with the ODM?

https://docs.mongodb.com/manual/reference/operator/update/inc/*



30.7k

Hi,

maybe use Phalcon\Mvc\Collection\Document class https://docs.phalconphp.com/en/latest/api/Phalcon%5Mvc%5Collection%5Document.html

and manipulate your datas as as an array