import { default } from "https://deno.land/x/pothos@release-1670043728/packages/core/builder.ts";
Constructors
new
default(options: NormalizeSchemeBuilderOptions<Types>)Methods
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param> & { }> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>
interfaceField<Type extends InterfaceParam<Types>>()
interfaceFields<Type extends InterfaceParam<Types>>(ref: Type, fields: InterfaceFieldsShape<Types, ParentShape<Types, Type>>)
interfaceRef<T>(name: string): ImplementableInterfaceRef<Types, T>
mutationField(name: string, field: MutationFieldThunk<Types>)
mutationFields(fields: MutationFieldsShape<Types>)
mutationType(...args: NormalizeArgs<[PothosSchemaTypes.MutationTypeOptions<Types>, MutationFieldsShape<Types>], 0>)
objectField<Type extends ObjectParam<Types>>()
objectFields<Type extends ObjectParam<Types>>(ref: Type, fields: ObjectFieldsShape<Types, ParentShape<Types, Type>>)
queryField(name: string, field: QueryFieldThunk<Types>)
queryFields(fields: QueryFieldsShape<Types>)
scalarType<Name extends ScalarName<Types>>(name: Name, options: PothosSchemaTypes.ScalarTypeOptions<Types, InputShape<Types, Name>, ParentShape<Types, Name>>)
subscriptionField(name: string, field: SubscriptionFieldThunk<Types>)
subscriptionFields(fields: SubscriptionFieldsShape<Types>)
subscriptionType(...args: NormalizeArgs<[PothosSchemaTypes.SubscriptionTypeOptions<Types>, SubscriptionFieldsShape<Types>], 0>)
Static Methods
registerPlugin<T extends keyof PluginConstructorMap<SchemaTypes>>(name: T, plugin: PluginConstructorMap<SchemaTypes>[T])