In Typesense, does the `.update()` method perform ...
# community-help
s
In Typesense, does the
.update()
method perform a partial update like MongoDB's
$set
, or does it replace the entire document? What precautions should developers take when updating documents in Typesense?
k
The Typesense API supports 3 types of updates via the
action
parameter. Please check the action modes documented here: https://typesense.org/docs/28.0/api/documents.html#action-modes-create-upsert-update-emplace Specifically, the
update
action mode can be used for sending a partial document consisting of only fields that you wish to update.
s
Thanks @Kishore Nallan