Function: silk()

silk(type, parse)

silk<TScalar>(type, parse?): GraphQLSilk<InferScalarInternal<TScalar> | undefined, InferScalarInternal<TScalar> | undefined>

Create a Silk from Scalar.

Type Parameters

TScalar extends GraphQLScalarType<unknown, unknown>

Parameters

type: TScalar | () => TScalar

parse?

Returns

GraphQLSilk<InferScalarInternal<TScalar> | undefined, InferScalarInternal<TScalar> | undefined>

Defined in

packages/core/src/resolver/silk.ts:16

silk(type, validate)

silk<TOutput, TInput>(type, validate?): GraphQLSilk<TOutput, TInput>

Create a GraphQLSilk Object.

Type Parameters

TOutput

TInput = TOutput

Parameters

type: GraphQLOutputType | () => GraphQLOutputType

validate?

Returns

GraphQLSilk<TOutput, TInput>

Defined in

packages/core/src/resolver/silk.ts:31