Type Alias: ClientMutationStore<Entities, S>
ClientMutationStore<
Entities,S> =Omit<ClientStore<Entities,S>,"get"> &object
Defined in: fate/lib/refetch-DpAsTpqi.d.mts:1058
The store provided by fate to a client mutation resolver.
Type Parameters
Entities
Entities
S
S extends ClientSchema
Type Declaration
get()
Call Signature
get<
N,K>(type,id,fields):Readonly<Partial<Pick<Entities[N],K>>> |undefined
Read only these stored fields, without materializing unrelated relationships.
Type Parameters
N
N extends string
K
K extends string
Parameters
type
N
id
string | number
fields
readonly K[]
Returns
Readonly<Partial<Pick<Entities[N], K>>> | undefined
Call Signature
get<
N>(type,id):Readonly<Partial<Entities[N]>> |undefined
Type Parameters
N
N extends string
Parameters
type
N
id
string | number
Returns
Readonly<Partial<Entities[N]>> | undefined
patch()
patch<
N>(type,id,patch):void
Stage a patch without constructing a detached return snapshot.
Type Parameters
N
N extends string
Parameters
type
N
id
string | number
patch
ClientPatch<Entities, S, N>
Returns
void