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
The above doesn't work for IDs. This works for me (with the same syntax as update):
Values.upsert(id, { // Modifier $set: { value: res.data['data']['last']['value'], time: Date.now() // no need coma here } } );