The following code works server side only:
Stores.update(
{ _id: _id },
{ $pull: { fruits: { $in: [ "apples", "oranges" ] } } },
)
To get around this problem, client side I just used $set on the new array that I want, and server side I did the regular $pull $in. Is there a way to make this work without this hack?