Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/plugin-scope-auth/mod.ts>PothosScopeAuthPlugin

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

Methods

createResolveSteps(
resolver: GraphQLFieldResolver<unknown, Types["Context"], object>,
shouldRunTypeScopes: boolean,
authorizedOnSubscribe: boolean,
): ResolveStep<Types>[]
createStepsForType(typeConfig: , unnamed 1: { skipTypeScopes?: boolean; skipInterfaceScopes?: boolean; forField: boolean; })
wrapIsTypeOf(isTypeOf: GraphQLIsTypeOfFn<unknown, Types["Context"]> | undefined, typeConfig: PothosObjectTypeConfig): GraphQLIsTypeOfFn<unknown, Types["Context"]> | undefined
wrapResolve(resolver: GraphQLFieldResolver<unknown, Types["Context"], object>, fieldConfig: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"], object>
wrapResolveType(resolveType: GraphQLTypeResolver<unknown, Types["Context"]>, typeConfig: PothosInterfaceTypeConfig | PothosUnionTypeConfig): GraphQLTypeResolver<unknown, Types["Context"]>
wrapSubscribe(subscriber: GraphQLFieldResolver<unknown, Types["Context"], object>, fieldConfig: PothosOutputFieldConfig<Types>): GraphQLFieldResolver<unknown, Types["Context"], object>