Home > git-documentdb > Collection > getDocByOid
#
Collection.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>
#
Remarks- undefined if a specified oid does not exist.