Skip to content

Commit 73ebdfe

Browse files
fix(): fix accidental breaking change (subgraphs import)
1 parent e232cd0 commit 73ebdfe

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/utils/transform-schema.util.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The changed lines are 31-40 and 85-87 and the original file can be found here:
33
// https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-graphql/src/schema/transformSchema.ts
44

5-
import '@apollo/subgraph/dist/schemaExtensions';
65
import {
76
GraphQLFieldConfigArgumentMap,
87
GraphQLFieldConfigMap,
@@ -27,6 +26,16 @@ import {
2726
isUnionType,
2827
} from 'graphql';
2928

29+
declare module 'graphql/type/definition' {
30+
interface GraphQLObjectType {
31+
resolveReference?: any;
32+
}
33+
34+
interface GraphQLObjectTypeConfig<TSource, TContext> {
35+
resolveReference?: any;
36+
}
37+
}
38+
3039
type TypeTransformer = (
3140
type: GraphQLNamedType,
3241
) => GraphQLNamedType | null | undefined;

0 commit comments

Comments
 (0)