Imported.mutation
function · packages/remote-domain/src/imported/mutation.ts:54
mutation<
A extends AnyApi,
const Name extends CommandNameOf<A>,
E extends AnyEntity,
Refused = never,
>(
api: A,
name: Name,
config: ImportedConfig<E, Refused>,
): ImportedMutation<A, Name, Refused>Declares the command name of api as a mutation named after it, with
{ target, input } as its input and the command's reply as its output.
Throws, naming it, for a command the Api does not serve and for a
Declared footprint of another Entity or naming a field entity lacks.
It makes no binding: DomainRemote.command takes the mutation to bind it.