Hi there! I'm using `upsert` for adding documents ...
# community-help
j
Hi there! I'm using
upsert
for adding documents to a collection, but it looks like their
popularity
field is being wiped every time the documents are updated. Would changing to
emplace
solve this issue?
j
Yeah, you want to use
emplace
and also make sure you don't send the
popularity
field in the payload, so it doesn't get over-written
👍 1
j
Thanks!
👍 1