-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add nullability foreign schema * add FieldResult and various catchTo adapters * Add IrType.result * add catch test * support for @nullOnlyOnError and @catch * Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/apollo3/ast/internal/definitions.kt Co-authored-by: Benoit Lubek <[email protected]> * Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/apollo3/ast/internal/definitions.kt Co-authored-by: Benoit Lubek <[email protected]> * Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/apollo3/ast/internal/definitions.kt Co-authored-by: Benoit Lubek <[email protected]> * findCatch -> findCatches * use the presence of the `@catch` directive definition to enable codegen * Add @ignoreErrors and ErrorAwareAdapter. Remove CatchToThrowAdapter * update test fixtures * fix test * fix nullable + catchToNull * nullOnlyOnError -> semanticNonNull * add ApolloExperimental * fix api dump * allow setting a default on the schema for @catch * add catch(to: THROW) * enforce chosing a default CatchTo * add validation for @catch * add validation for @catch * update api dump * fix ParserTest * fix tests * FieldResult.error -> FieldResult.exception * update message * simpler * Update libraries/apollo-api/src/commonMain/kotlin/com/apollographql/apollo3/api/Adapters.kt Co-authored-by: Benoit Lubek <[email protected]> * Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/apollo3/ast/gqldirective.kt Co-authored-by: Benoit Lubek <[email protected]> * Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/apollo3/ast/internal/definitions.kt Co-authored-by: Benoit Lubek <[email protected]> * nooe -> semanticNonNull * fix bad copy paste * update apiDump * hide some more symbol * allow to catch non-ApolloGraphQLException * comment + reorder code * valueOrNull -> getOrNull for consistency * API visibility * simplify code and does not generate errorAware() adapter wrappers for non-null types * add an quick test * fix tests --------- Co-authored-by: Benoit Lubek <[email protected]>
- Loading branch information
1 parent
0fc496f
commit d14bcb6
Showing
454 changed files
with
3,061 additions
and
467 deletions.
There are no files selected for viewing
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
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.