Create a custom resolver
Create a new custom resolver.
Request body
The name of the resolver's parent type. This can be "Query", "Mutation", or the name of a generated type if this is a computed property.
The name of the custom resolver field that appears in the GraphQL schema.
The kind of input type the custom resolver uses. This value must agree with the value of input_type:
- A scalar input type must use "scalar" or "scalar-list"
- A generated input type must use "generated" or "generated-list"
- A custom input type must use "custom"
If undefined, the resolver does not accept an input.
The kind of payload type the custom resolver uses. This value must agree with the value of payload_type:
- A scalar payload type must use "scalar" or "scalar-list"
- A generated payload type must use "generated" or "generated-list"
- A custom payload type must use "custom"
If undefined, the resolver returns a DefaultPayload object.
The custom resolver's unique ID.
The resolver function's unique ID.
Response
Created
The name of the resolver's parent type. This can be "Query", "Mutation", or the name of a generated type if this is a computed property.
The name of the custom resolver field that appears in the GraphQL schema.
The kind of input type the custom resolver uses. This value must agree with the value of input_type:
- A scalar input type must use "scalar" or "scalar-list"
- A generated input type must use "generated" or "generated-list"
- A custom input type must use "custom"
If undefined, the resolver does not accept an input.
The kind of payload type the custom resolver uses. This value must agree with the value of payload_type:
- A scalar payload type must use "scalar" or "scalar-list"
- A generated payload type must use "generated" or "generated-list"
- A custom payload type must use "custom"
If undefined, the resolver returns a DefaultPayload object.
The custom resolver's unique ID.
The resolver function's unique ID.