You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.
I have a displayableLocation field which I compute via autoValue when address field is set (essentially adding random "jitter" to the provided address). I'm returning an object from autoValue like so:
displayableLocation: {
type: Object,
autoValue: function () {
// other logic
return {
address: '...'
}
}
}
However when I call MapEnitites.update({_id: entity._id}, entity), autoValue adds the displayableLocation.address field under a $set modifier so I end up with a half-modifier, half-document and collection2 reports Expected '_id' to be a modifier operator like '$set'.
Can I actually use whole documents with update?
The text was updated successfully, but these errors were encountered:
I have a
displayableLocation
field which I compute viaautoValue
whenaddress
field is set (essentially adding random "jitter" to the provided address). I'm returning an object fromautoValue
like so:However when I call
MapEnitites.update({_id: entity._id}, entity)
,autoValue
adds thedisplayableLocation.address
field under a$set
modifier so I end up with a half-modifier, half-document and collection2 reportsExpected '_id' to be a modifier operator like '$set'
.Can I actually use whole documents with
update
?The text was updated successfully, but these errors were encountered: