Function: findOne()
findOne<
S
>(handle
,type
,include
): (id
) =>undefined
|Entity
<S
>
Defined in: packages/hypergraph/src/entity/findOne.ts:10
Find the entity of the given type, with the given id, from the repo.
Type Parameters
S
S
extends AnyNoContext
Parameters
handle
DocHandle
<DocumentContent
>
type
S
include
undefined
| { [K in string | number | symbol]?: Record<string, Record<string, never>> }
Returns
(
id
):undefined
|Entity
<S
>
Parameters
id
string
Returns
undefined
| Entity
<S
>