-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with errors in mutation convention when explicitly bindun… (
- Loading branch information
1 parent
9cc769e
commit 8631e30
Showing
4 changed files
with
58 additions
and
0 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
31 changes: 31 additions & 0 deletions
31
...ts/__snapshots__/AnnotationBasedMutations.InferErrorEvenIfExplicitFieldBindingIsUsed.snap
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,31 @@ | ||
schema { | ||
query: Query | ||
mutation: ExplicitMutation | ||
} | ||
|
||
interface Error { | ||
message: String! | ||
} | ||
|
||
type DoSomethingPayload { | ||
int: Int | ||
errors: [DoSomethingError!] | ||
} | ||
|
||
type ExplicitCustomError implements Error { | ||
message: String! | ||
} | ||
|
||
type ExplicitMutation { | ||
doSomething(input: DoSomethingInput!): DoSomethingPayload! | ||
} | ||
|
||
type Query { | ||
abc: String | ||
} | ||
|
||
union DoSomethingError = ExplicitCustomError | ||
|
||
input DoSomethingInput { | ||
status: Int! | ||
} |