Home > git-documentdb > GitDocumentDB > getDocByOid
#
GitDocumentDB.getDocByOid() methodGet a Doc which has specified oid
Signature:#
ParametersParameter | Type | Description |
---|---|---|
fileOid | string | Object ID (SHA-1 hash) that represents a Git object. (See https://git-scm.com/docs/git-hash-object ) |
docType | DocType |
Promise<Doc | undefined>
#
Remarksundefined if a specified oid does not exist.
This is an alias of GitDocumentDB#rootCollection.getDocByOid()