I'm looking to add a new field (array that will be populated with $push in the future) to the current document but am getting the error update failed: MongoError: Cannot apply $push/$pushAll modifier to non-array
I'm working on the Meteor.users collection.
The code ran was:
var user = Meteor.userId();
Meteor.users.update({_id:user}, {$set: {"newfield": ["some data"]}});