-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3badb72
commit 3e4d363
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...ationTests/Tests/mergedSourceFromDefinitionRootNeedsFullyQualifedName/README.MD
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 @@ | ||
# Overview | ||
|
||
|
||
|
||
## Reference Issue: https://github.com/apollographql/apollo-ios/pull/3120 | ||
|
||
## Solution | ||
|
||
All properties that are lists of scalars should use the `_setScalarList` function when initialized inside mock objects. |
15 changes: 15 additions & 0 deletions
15
...grationTests/Tests/mergedSourceFromDefinitionRootNeedsFullyQualifedName/operation.graphql
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,15 @@ | ||
fragment Test on Event { | ||
child { | ||
... on ChildA { | ||
innerChild: child { | ||
foo | ||
} | ||
} | ||
} | ||
... on EventA { | ||
bar | ||
} | ||
... on EventB { | ||
baz | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...tegrationTests/Tests/mergedSourceFromDefinitionRootNeedsFullyQualifedName/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
type Query { | ||
test: Event! | ||
} | ||
|
||
interface Event { | ||
child: Child! | ||
} | ||
|
||
type EventA implements Event { | ||
child: Child! | ||
bar: String! | ||
} | ||
|
||
type EventB implements Event { | ||
child: Child! | ||
baz: String! | ||
} | ||
|
||
interface Child { | ||
foo: String! | ||
child: Child | ||
} | ||
|
||
type ChildA implements Child { | ||
foo: String! | ||
child: Child | ||
} |