-
-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update schema exporter tests (#3950)
- Loading branch information
Showing
4 changed files
with
90 additions
and
90 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
src/GraphQL.Tests/Utilities/SchemaExporterTests.Federation1Schema.approved.txt
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
34 changes: 17 additions & 17 deletions
34
src/GraphQL.Tests/Utilities/SchemaExporterTests.Federation2Schema.approved.txt
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
directive @extends on INTERFACE | OBJECT | ||
|
||
directive @external on FIELD_DEFINITION | ||
|
||
directive @requires(fields: String!) on FIELD_DEFINITION | ||
directive @key(fields: String!) on INTERFACE | OBJECT | ||
|
||
directive @provides(fields: String!) on FIELD_DEFINITION | ||
|
||
directive @key(fields: String!) on OBJECT | INTERFACE | ||
|
||
directive @extends on OBJECT | INTERFACE | ||
|
||
scalar _Any | ||
|
||
extend type Category @key(fields: "id") { | ||
id: ID! @external | ||
products: [Product!]! | ||
} | ||
directive @requires(fields: String!) on FIELD_DEFINITION | ||
|
||
type Product @key(fields: "id") { | ||
category: Category! | ||
id: ID! | ||
name: String! | ||
category: Category! | ||
} | ||
|
||
extend type Query { | ||
products: [Product!]! | ||
_service: _Service! | ||
_entities(representations: [_Any!]!): [_Entity]! | ||
} | ||
scalar _Any | ||
|
||
"A union of all types that use the @key directive" | ||
union _Entity = Category | Product | ||
|
||
type _Service { | ||
sdl: String | ||
} | ||
|
||
extend type Category @key(fields: "id") { | ||
id: ID! @external | ||
products: [Product!]! | ||
} | ||
|
||
extend type Query { | ||
products: [Product!]! | ||
_entities(representations: [_Any!]!): [_Entity]! | ||
_service: _Service! | ||
} |
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