Having a bit of trouble getting my Meteor upsert function working. I am fairly (200 lines of code) new, and I\'m having a bit of trouble.
The collection keeps on having
Try this:
values.update({"id":id}, { $set: { value: res.data['data']['last']['value'], time: Date.now() // no need coma here } }, { upsert: true } );