Function: update()
update<
S>(handle,type): (id,data) =>Entity<S>
Defined in: packages/hypergraph/src/entity/update.ts:10
Update an existing entity model of given type in the repo.
Type Parameters
S
S extends AnyNoContext
Parameters
handle
DocHandle<DocumentContent>
type
S
Returns
(
id,data):Entity<S>
Parameters
id
string
data
{ [K in string | number | symbol]: Partial<Type<S>>[K] }
Returns
Entity<S>