I have the following code snippet:
var tmp = "Test";
and I would like it to look like this:
Books.update({_id: data._id},{$set:{tmp: [0,0,0,0,0]}});
Currently, the output is an array like this: tmp: [0,0,0,0,0] But what I really want is: Test [0,0,0,0,0]
Does anyone have any ideas on how I can achieve that?