File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ Feature: GraphQL mutation support
142
142
143
143
@createSchema
144
144
Scenario : Modify an item through a mutation
145
- Given there are 1 dummy objects
145
+ Given there are 1 dummy objects having each 2 relatedDummies
146
146
When I send the following GraphQL request:
147
147
"""
148
148
mutation {
@@ -151,6 +151,13 @@ Feature: GraphQL mutation support
151
151
name
152
152
description
153
153
dummyDate
154
+ relatedDummies {
155
+ edges {
156
+ node {
157
+ name
158
+ }
159
+ }
160
+ }
154
161
clientMutationId
155
162
}
156
163
}
@@ -162,6 +169,7 @@ Feature: GraphQL mutation support
162
169
And the JSON node "data.updateDummy.name" should be equal to "Dummy #1"
163
170
And the JSON node "data.updateDummy.description" should be equal to "Modified description."
164
171
And the JSON node "data.updateDummy.dummyDate" should be equal to "2018-06-05T00:00:00+00:00"
172
+ And the JSON node "data.updateDummy.relatedDummies.edges[0].node.name" should be equal to "RelatedDummy11"
165
173
And the JSON node "data.updateDummy.clientMutationId" should be equal to "myId"
166
174
167
175
Scenario : Modify an item with composite identifiers through a mutation
You can’t perform that action at this time.
0 commit comments