Interface: ResolverFactory()<TSchemaIO>

Type Parameters

TSchemaIO extends AbstractSchemaIO

ResolverFactory<TOperations>(operations, options?): TOperations

Type Parameters

TOperations extends Record<string, FieldOrOperation<undefined, any, any, OperationType>>

Parameters

operations: TOperations

options?: ResolverOptions<ValueOf<TOperations>>

Returns

TOperations

Defined in

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

Methods

of()

of<TParent, TOperations>(parent, operationOrFields, options?): TOperations

Type Parameters

TParent extends object

TOperations extends Record<string, typeof FIELD_HIDDEN | FieldOrOperation<SchemaToSilk<TSchemaIO, TParent>, any, any, FieldOrOperationType> | FieldOrOperation<undefined, any, any, OperationType>>

Parameters

parent: TParent

operationOrFields: TOperations

options?: ResolverOptionsWithExtensions<OmitInUnion<ValueOf<TOperations>, typeof FIELD_HIDDEN>>

Returns

TOperations

Defined in

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