I am trying to update to update two separate arrays in a document with one update call. Is there a way to do this?
For example if I have a document like:
<
You can specify multiple fields to the $push operator
db.collection.update( { _id :1 }, { $push : { array1 : "1", array2 : "5" }} )