-
Notifications
You must be signed in to change notification settings - Fork 683
Add support for @catch and @semanticNonNull
#5405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 28 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
6007ad1
add nullability foreign schema
martinbonnin 7aaeed7
add FieldResult and various catchTo adapters
martinbonnin 231242d
Add IrType.result
martinbonnin 5eac8da
add catch test
martinbonnin 9f6e026
support for @nullOnlyOnError and @catch
martinbonnin 6f3370a
Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/a…
martinbonnin c6970a4
Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/a…
martinbonnin acdb970
Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/a…
martinbonnin e7eb8c7
findCatch -> findCatches
martinbonnin e21ccd3
use the presence of the `@catch` directive definition to enable codegen
martinbonnin c141ad3
Add @ignoreErrors and ErrorAwareAdapter. Remove CatchToThrowAdapter
martinbonnin 884c95e
update test fixtures
martinbonnin 4ea6131
fix test
martinbonnin f265e27
fix nullable + catchToNull
martinbonnin 540317a
nullOnlyOnError -> semanticNonNull
martinbonnin efbe797
add ApolloExperimental
martinbonnin 932cc4b
fix api dump
martinbonnin 1c425e4
allow setting a default on the schema for @catch
martinbonnin 2f66e4f
add catch(to: THROW)
martinbonnin e8de0ac
enforce chosing a default CatchTo
martinbonnin 96b710d
add validation for @catch
martinbonnin bc1d52d
add validation for @catch
martinbonnin eea2763
update api dump
martinbonnin 466df99
fix ParserTest
martinbonnin 411c64b
fix tests
martinbonnin 23e753b
FieldResult.error -> FieldResult.exception
martinbonnin 29c413d
update message
martinbonnin fd899d4
simpler
martinbonnin 2fe76c3
Update libraries/apollo-api/src/commonMain/kotlin/com/apollographql/a…
martinbonnin 402d4d7
Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/a…
martinbonnin 1a1ffe3
Update libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/a…
martinbonnin e3d6fae
nooe -> semanticNonNull
martinbonnin e92a2a6
fix bad copy paste
martinbonnin da4a0ad
update apiDump
martinbonnin a5f4d74
hide some more symbol
martinbonnin adf97ff
allow to catch non-ApolloGraphQLException
martinbonnin 5f803f2
comment + reorder code
martinbonnin 01fb5e5
valueOrNull -> getOrNull for consistency
martinbonnin 3d5e6cf
API visibility
martinbonnin a28b606
simplify code and does not generate errorAware() adapter wrappers for…
martinbonnin c0f5048
add an quick test
martinbonnin f69d3c5
fix tests
martinbonnin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.