Home > git-documentdb > GitDocumentDB > getDocByOid
GitDocumentDB.getDocByOid() method#
Get a Doc which has specified oid
Signature:Parameters#
| Parameter | 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>
Remarks#
undefined if a specified oid does not exist.
This is an alias of GitDocumentDB#rootCollection.getDocByOid()