-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1797 from iMobs/upgrade-apollo-federation-with-su…
…bgraph fix(deps) Upgrade apollo federation with subgraph
- Loading branch information
Showing
7 changed files
with
80 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kamilmysliwiec
Author
Member
|
||
import { | ||
GraphQLFieldConfigArgumentMap, | ||
GraphQLFieldConfigMap, | ||
|
@@ -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; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@kamilmysliwiec this change make @apollo/subgraph required package even if you are not using Apollo Federation
This is a breaking change