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
Figured it out through trial and error:
Values.upsert({ // Selector source: "SourceOne", currency: "USD" }, { // Modifier $set: { value: res.data['data']['last']['value'], time: Date.now() // no comma needed here } });