Home > git-documentdb > Collection > getFatDocOldRevision
#
Collection.getFatDocOldRevision() methodGet an old revision of a FatDoc data
Signature:#
ParametersParameter | Type | Description |
---|---|---|
shortName | string | shortName is a file path whose collectionPath is omitted. |
revision | number | Specify a number to go back to old revision. Default is 0. See Collection.getHistory() for the array of revisions. |
historyOptions | HistoryOptions | The array of revisions is filtered by HistoryOptions.filter. |
getOptions | GetOptions |
Promise<FatDoc | undefined>
#
Remarksundefined if a specified data does not exist or it is deleted.
JsonDoc if the file extension is SerializedFormat.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.