Interface: QueryMutationOptions<TSchemaIO, TOutput, TInput>

Options for creating a GraphQL Query or Mutation.

Extends

Type Parameters

TSchemaIO extends AbstractSchemaIO

TOutput extends TSchemaIO[0]

TInput extends InputSchema<TSchemaIO[0]> = undefined

Properties

deprecationReason?

optional deprecationReason: Maybe<string>

Inherited from

GraphQLFieldOptions.deprecationReason

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:535


description?

optional description: Maybe<string>

Inherited from

GraphQLFieldOptions.description

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:530


extensions?

optional extensions: Maybe<Readonly<GraphQLFieldExtensions<any, any, any>>>

Inherited from

GraphQLFieldOptions.extensions

Defined in

node_modules/.pnpm/graphql@16.8.1_patch_hash=2p6wc42resg5at2p4utt5idamq/node_modules/graphql/type/definition.d.ts:536


input?

optional input: TInput

Defined in

packages/core/src/resolver/types.ts:161


middlewares?

optional middlewares: Middleware<FieldOrOperation<undefined, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "query" | "mutation">>[]

Inherited from

ResolverOptions.middlewares

Defined in

packages/core/src/resolver/types.ts:65


resolve()

resolve: (input) => MayPromise<InferPropertyType<TOutput, TSchemaIO[2]>>

Parameters

input: InferInputO<TInput, TSchemaIO>

Returns

MayPromise<InferPropertyType<TOutput, TSchemaIO[2]>>

Defined in

packages/core/src/resolver/types.ts:162