We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

MongoDB update, $pull

Hi, how to perform $pull (remove array element form document) http://docs.mongodb.org/manual/reference/operator/update/pull/ in phalcon?


{_id : ObjectId(...), name : "name", ids : [44, 1, 9, 11, 15, 66]}

So, how to remove, for example, 15 form ids ???


Hello ... I am Not familiar with MongoDB but here is a possible resource. Try if you want..:-) https://zappysys.com/blog/ssis-loading-data-into-mongodb-upsert-update-delete-insert/