Skip to content

Commit

Permalink
WIP add integration test notes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMDev committed Jul 31, 2023
1 parent 3badb72 commit 3e4d363
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
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.
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
}
}
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
}

0 comments on commit 3e4d363

Please sign in to comment.