-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apollo-tooling] bump bootstraped version of Apollo to
4.0.0-beta.3
(…
…#5452) * add a test to download the schema against a real server * improve error handling * Fix missing return * Fix registerOperations error message when service is null * Revert test * display error.message in the exception * Use consistent error handling pattern in PersistedQueriesUploader.kt * Use consistent error handling pattern in downloadRegistry * factor some code and make the error handling more beautiful * keep flow control flat * fix indentation * map Void to Unit * add comments and deprecations * simplify --------- Co-authored-by: BoD <BoD@JRAF.org>
- Loading branch information
1 parent
ed21a52
commit 690ec85
Showing
17 changed files
with
172 additions
and
148 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
3 changes: 3 additions & 0 deletions
3
libraries/apollo-debug-server/src/androidMain/resources/schema.graphqls
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
2 changes: 2 additions & 0 deletions
2
libraries/apollo-tooling/src/main/graphql/graphql/extra.graphqls
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,2 @@ | ||
extend schema @link(url: "https://specs.apollo.dev/nullability/v0.1", import: ["@catch", "CatchTo"]) | ||
extend schema @catch(to: THROW) |
9 changes: 9 additions & 0 deletions
9
libraries/apollo-tooling/src/main/graphql/platform-api/internal/extra.graphqls
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,9 @@ | ||
extend schema @link(url: "https://specs.apollo.dev/nullability/v0.1", import: ["@semanticNonNull", "@catch", "CatchTo"]) | ||
extend schema @catch(to: THROW) | ||
|
||
extend type Service @semanticNonNull(field: "statsWindow") | ||
extend type ServiceMutation @semanticNonNull(field: "registerOperationsWithResponse") | ||
extend type ServiceStatsWindow @semanticNonNull(field: "fieldLatencies") | ||
extend type RegisterOperationsMutationResponse @semanticNonNull(field: "invalidOperations") | ||
# Not sure if errors can be null or not | ||
# extend type InvalidOperation @semanticNonNull(field: "errors") |
7 changes: 7 additions & 0 deletions
7
libraries/apollo-tooling/src/main/graphql/platform-api/public/extra.graphqls
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,7 @@ | ||
extend schema @link(url: "https://specs.apollo.dev/nullability/v0.1", import: ["@semanticNonNull", "@catch", "CatchTo"]) | ||
extend schema @catch(to: THROW) | ||
|
||
extend type GraphMutation @semanticNonNull(field: "uploadSchema") | ||
extend type GraphMutation @semanticNonNull(field: "publishSubgraph") | ||
extend type GraphVariant @semanticNonNull(field: "latestPublication") | ||
extend type SchemaPublication @semanticNonNull(field: "schema") |
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
Oops, something went wrong.