Interface: FieldFactoryWithUtils()<TSchemaIO>

Function to create a GraphQL Field.

Extends

Type Parameters

TSchemaIO extends AbstractSchemaIO

FieldFactoryWithUtils<TParent, TOutput, TInput>(output, resolveOrOptions): FieldOrOperation<SchemaToSilk<TSchemaIO, TParent>, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "field">

Function to create a GraphQL Field.

Type Parameters

TParent extends object

TOutput extends object

TInput extends undefined | object | Record<string, TSchemaIO[0]> = undefined

Parameters

output: TOutput

resolveOrOptions: FieldOptions<TSchemaIO, TParent, TOutput, TInput> | (parent) => MayPromise<InferPropertyType<TOutput, TSchemaIO[2]>>

Returns

FieldOrOperation<SchemaToSilk<TSchemaIO, TParent>, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "field">

Defined in

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

Properties

hidden

hidden: typeof FIELD_HIDDEN

Set fields to be hidden in GraphQL Schema

Defined in

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