Interface: FieldOptions<TSchemaIO, TParent, TOutput, TInput>

Options for External Filed of existing GraphQL Object.

Extends

Type Parameters

TSchemaIO extends AbstractSchemaIO

TParent extends TSchemaIO[0]

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:224


middlewares?

optional middlewares: Middleware<FieldOrOperation<SchemaToSilk<TSchemaIO, TParent>, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "field">>[]

Inherited from

ResolverOptions.middlewares

Defined in

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


resolve()

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

Parameters

parent: InferPropertyType<TParent, TSchemaIO[2]>

input: InferInputO<TInput, TSchemaIO>

Returns

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

Defined in

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