Home > git-documentdb > GitDocumentDB > updateFatDoc
#
GitDocumentDB.updateFatDoc() methodUpdate a data
Signature:#
ParametersParameter | Type | Description |
---|---|---|
name | string | undefined | null | name is a file path. |
doc | JsonDoc | string | Uint8Array | |
options | PutOptions |
Promise<PutResult >
#
RemarksThrows DocumentNotFoundError if a specified data does not exist. It might be better to use put() instead of update().
The saved file path is
${GitDocumentDB#workingDir}/${name}extension
._id property of a JsonDoc is automatically set or overwritten by name parameter whose extension is omitted.
An update operation is not skipped even if no change occurred on a specified data.
This is an alias of GitDocumentDB#rootCollection.updateFatDoc()
#
Exceptions# Errors from validateDocument, validateId
# Errors from putWorker