I have a basic upsert operation in my code:
Follows.upsert({
createdBy: 'me',
entity: <some string value>,
entityId: <an id>
}, {
$set: {
createdBy: 'me',
entity: <some string value>,
entityId: <an id>
}
}, function(err, res) {
...
}
However meteor is complaining cannot infer query fields to set, both paths 'entity' and 'entityId' are matched
. Any clues what is going on here? Have there been changes in the latest meteor version changing the behaviour of upsert
?