File tree Expand file tree Collapse file tree
subgraph-js/src/schema-helper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { GraphQLFieldResolver , GraphQLScalarType , DocumentNode } from 'graphql' ;
2+ import type { GraphQLReferenceResolver } from '../schemaExtensions' ;
23
34export interface GraphQLSchemaModule {
45 typeDefs : DocumentNode ;
@@ -8,15 +9,17 @@ export interface GraphQLSchemaModule {
89// eslint-disable-next-line @typescript-eslint/ban-types
910export interface GraphQLResolverMap < TContext = { } > {
1011 [ typeName : string ] :
11- | {
12+ | ( {
1213 [ fieldName : string ] :
1314 | GraphQLFieldResolver < any , TContext >
1415 | {
1516 requires ?: string ;
1617 resolve ?: GraphQLFieldResolver < any , TContext > ;
1718 subscribe ?: GraphQLFieldResolver < any , TContext > ;
1819 } ;
19- }
20+ } & {
21+ __resolveReference : GraphQLReferenceResolver < TContext > ;
22+ } )
2023 | GraphQLScalarType
2124 | {
2225 [ enumValue : string ] : string | number ;
You can’t perform that action at this time.
0 commit comments