Reputation: 19092
The documentation tells me this is legal if I want to set one value and increment another:
{ $set : { x : 1 }, $inc : { y : 1 } }
What if I want increment both variables? I'm trying this but it isn't working:
{ $inc : [{ y : 1 }, { x : 1 }] }
Is this possible?
Upvotes: 7
Views: 6697