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/



38.8k

Hi,

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

and manipulate your datas as as an array