8000 fix(deps) Replace schemaExtensions · nestjs/graphql@6982a85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6982a85

Browse files
author
Ian Mobley
committed
fix(deps) Replace schemaExtensions
This is now part of the subgraph dependency and the type defs do not need to be duplicated.
1 parent bf088f1 commit 6982a85

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

lib/utils/transform-schema.util.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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 { GraphQLReferenceResolver } from '@apollo/federation/dist/types';
5+
import '@apollo/subgraph/dist/schemaExtensions';
66
import {
77
GraphQLFieldConfigArgumentMap,
88
GraphQLFieldConfigMap,
@@ -27,17 +27,6 @@ import {
2727
isUnionType,
2828
} from 'graphql';
2929

30-
// Definitions taken from here: https://github.com/apollographql/apollo-server/blob/main/packages/apollo-federation/src/types.ts#L62
31-
declare module 'graphql/type/definition' {
32-
interface GraphQLObjectType {
33-
resolveReference?: GraphQLReferenceResolver<any>;
34-
}
35-
36-
interface GraphQLObjectTypeConfig<TSource, TContext> {
37-
resolveReference?: GraphQLReferenceResolver<TContext>;
38-
}
39-
}
40-
4130
type TypeTransformer = (
4231
type: GraphQLNamedType,
4332
) => GraphQLNamedType | null | undefined;

0 commit comments

Comments
 (0)
0