We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

MongoDB update, $pull

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

Example:

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

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



199

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/