Skip to content

Commit

Permalink
fix(deps) Replace schemaExtensions
Browse files Browse the repository at this point in the history
This is now part of the subgraph dependency and the type defs do not
need to be duplicated.
  • Loading branch information
Ian Mobley committed Oct 17, 2021
1 parent bf088f1 commit 6982a85
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/utils/transform-schema.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The changed lines are 31-40 and 85-87 and the original file can be found here:
// https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-graphql/src/schema/transformSchema.ts

import { GraphQLReferenceResolver } from '@apollo/federation/dist/types';
import '@apollo/subgraph/dist/schemaExtensions';
import {
GraphQLFieldConfigArgumentMap,
GraphQLFieldConfigMap,
Expand All @@ -27,17 +27,6 @@ import {
isUnionType,
} from 'graphql';

// Definitions taken from here: https://github.com/apollographql/apollo-server/blob/main/packages/apollo-federation/src/types.ts#L62
declare module 'graphql/type/definition' {
interface GraphQLObjectType {
resolveReference?: GraphQLReferenceResolver<any>;
}

interface GraphQLObjectTypeConfig<TSource, TContext> {
resolveReference?: GraphQLReferenceResolver<TContext>;
}
}

type TypeTransformer = (
type: GraphQLNamedType,
) => GraphQLNamedType | null | undefined;
Expand Down

0 comments on commit 6982a85

Please sign in to comment.