-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introspection of subgraph schema in Hive CLI
- Loading branch information
1 parent
1c6e315
commit be1c01b
Showing
7 changed files
with
176 additions
and
86 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,16 @@ | ||
--- | ||
'@graphql-hive/cli': minor | ||
--- | ||
|
||
Support introspection of subgraph's schema in the `$ hive introspect` command. | ||
|
||
This change allows developers to extract the schema of a subgraph (GraphQL Federation) from a running service. | ||
It is useful if the GraphQL framework used in the subgraph does not expose the schema as `.graphql` file. | ||
|
||
--- | ||
|
||
This change slightly changes the previous behavior of the `$ hive introspect` command. If the introspected GraphQL API is capable of resolving `{ _service { sdl } }` query, the command will use it to fetch the schema. Otherwise, it will use the regular introspection query. | ||
|
||
This change is backward-compatible for most, if not all users and should not affect the existing workflows. | ||
|
||
In case it does, you can use the `$ hive introspect --ignore-federation` flag to revert to the previous behavior. |
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
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