Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pothos/packages/plugin-sub-graph/mod.ts>PothosSubGraphPlugin

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class PothosSubGraphPlugin
extends BasePlugin<Types>
import { PothosSubGraphPlugin } from "https://deno.land/x/pothos@release-1694147393/packages/plugin-sub-graph/mod.ts";

Type Parameters

Types extends SchemaTypes

Methods

afterBuild(schema: GraphQLSchema)
onInputFieldConfig(fieldConfig: PothosInputFieldConfig<Types>)
onOutputFieldConfig(fieldConfig: PothosOutputFieldConfig<Types>)
onTypeConfig(typeConfig: PothosTypeConfig)

Static Methods

createSubGraph(schema: GraphQLSchema, subGraph: string[] | string)
filterFields(
type: GraphQLInterfaceType | GraphQLObjectType,
newTypes: Map<string, GraphQLNamedType>,
subGraphs: string[],
)
filterTypes(types: readonly GraphQLNamedType[], subGraphs: string[])
mapInputFields(
type: GraphQLInputObjectType,
newTypes: Map<string, GraphQLNamedType>,
subGraphs: string[],
)