-
-
Notifications
You must be signed in to change notification settings - Fork 821
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
299 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-tools/federation': patch | ||
--- | ||
|
||
Support `extend type` in subgraph SDL |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-tools/federation': patch | ||
--- | ||
|
||
Support supergraph with no join\_\_type directives on Query type |
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
57 changes: 57 additions & 0 deletions
57
packages/federation/test/__snapshots__/subgraph.test.ts.snap
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`converts extensions in the subgraph SDL 1`] = ` | ||
"schema { | ||
query: Query | ||
} | ||
directive @external on FIELD_DEFINITION | OBJECT | ||
directive @requires(fields: _FieldSet!) on FIELD_DEFINITION | ||
directive @provides(fields: _FieldSet!) on FIELD_DEFINITION | ||
directive @key(fields: _FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE | ||
directive @link(url: String!, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA | ||
directive @shareable repeatable on OBJECT | FIELD_DEFINITION | ||
directive @inaccessible on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | ||
directive @tag(name: String!) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | ||
directive @override(from: String!) on FIELD_DEFINITION | ||
directive @composeDirective(name: String!) repeatable on SCHEMA | ||
directive @extends on OBJECT | INTERFACE | ||
union _Entity = User | ||
scalar _Any | ||
scalar _FieldSet | ||
scalar link__Import | ||
enum link__Purpose { | ||
SECURITY | ||
EXECUTION | ||
} | ||
type _Service { | ||
sdl: String! | ||
} | ||
type Query { | ||
_entities(representations: [_Any!]!): [_Entity]! | ||
_service: _Service! | ||
users: [User!]! | ||
} | ||
type User @key(fields: "id") @extends { | ||
id: ID! | ||
name: String! | ||
}" | ||
`; |
Oops, something went wrong.