Home > git-documentdb > GitDocumentDB > getFatDocOldRevision
#
GitDocumentDB.getFatDocOldRevision() methodGet an old revision of a FatDoc data
Signature:#
ParametersParameter | Type | Description |
---|---|---|
name | string | name is a file path. |
revision | number | Specify a number to go back to old revision. Default is 0. See GitDocumentDB.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 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.
This is an alias of GitDocumentDB#rootCollection.getFatDocOldRevision()