What would be the simplest way to delete an object from a List based on a value of a property?
I'm looking for an equivalent of the $pull in MongoDB.
My List looks simple like this:
[{a: '1' , b: '1'},{a: '2' , b: '2'}]
And I'd like to remove from the array the object with property a set to '1'. In MongoDB, I'd do it like this:
Model.update({_id: getCorrectParentObj},{ $pull: {listIDeleteFrom: { a: '1' } } },(err, result)=>{});
How can I get the same result with ImmutableJS?