Function: query()

query<TOutput, TInput>(output, resolveOrOptions): FieldOrOperation<undefined, SchemaToSilk<GraphQLSilkIO, TOutput>, InputSchemaToSilk<GraphQLSilkIO, TInput>, "query">

Type Parameters

TOutput extends GraphQLSilk<any, any>

TInput extends InputSchema<GraphQLSilk<any, any>> = undefined

Parameters

output: TOutput

resolveOrOptions: QueryMutationOptions<GraphQLSilkIO, TOutput, TInput> | () => MayPromise<"~standard" extends keyof TOutput ? "types" extends keyof NonNullable<TOutput[keyof TOutput & "~standard"]> ? "output" extends keyof NonNullable<NonNullable<...[...]>[keyof ... & "types"]> ? NonNullable<NonNullable<...[...]>[keyof ... & "types"]>[keyof NonNullable<...[...]> & "output"] : never : never : never>

Returns

FieldOrOperation<undefined, SchemaToSilk<GraphQLSilkIO, TOutput>, InputSchemaToSilk<GraphQLSilkIO, TInput>, "query">

Defined in

packages/core/src/resolver/resolver.ts:25