Deprecated
— See the type definition for MutationBuilder or similar for
the types used for defining Bijection functions.
The definition of a Bijection query, mutation, or action function with argument
validation.
Argument validation allows you to assert that the arguments to this function
are the expected type.
Example:
Type parameters
Properties
args
• args:ArgsValidator
A validator for the arguments of this function.
This is an object mapping argument names to validators constructed with
v.
handler
• handler: (ctx: Ctx, args: ObjectType<ArgsValidator>) => Returns
Type declaration
▸ (ctx, args): Returns
The implementation of this function.
This is a function that takes in the appropriate context and arguments
and produces some result.
Parameters
Returns
Returns