vadimdemedes / mongorito

🍹 MongoDB ODM for Node.js apps based on Redux
1.38k stars 90 forks source link

How to update an array i.e $push and $pull #112

Open maisnamraju opened 8 years ago

maisnamraju commented 8 years ago

How can I do something like this

 Crew.update({
             '_id': crewId
                     },
                     {
                    '$pull': {
                        'accounts': {   '$in': accountId }
                      }
               });

I haven't been able to find any answers to this one yet ? Is this supported ?

vadimdemedes commented 8 years ago

Related to #95.