Home > git-documentdb > Collection > getFatDoc
Collection.getFatDoc() method#
Get a FatDoc data
Signature:Parameters#
| Parameter | Type | Description |
|---|---|---|
| shortName | string | shortName is a file path whose collectionPath is omitted. |
| getOptions | GetOptions |
Promise<FatDoc | undefined>
undefined if a specified data does not exist.
FatJsonDoc if the file extension is SerializeFormat.extension. Be careful that JsonDoc may not have _id property when an app other than GitDocumentDB creates it.
FatBinaryDoc if described in .gitattribtues, otherwise FatTextDoc.
getOptions.forceDocType always overwrite return type.