You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fragment DoesKnowCommandNested($command: DogCommand) on Dog {
1216
+
doesKnowCommand(dogCommand: $command)
1217
+
mother {
1218
+
doesKnowCommand(dogCommand: $command)
1219
+
}
1220
+
}
1221
+
`).toDeepEqual([
1222
+
{
1223
+
message:
1224
+
'Fields "mother" conflict because subfields "doesKnowCommand" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional.',
1225
+
locations: [
1226
+
{line: 5,column: 13},
1227
+
{line: 13,column: 13},
1228
+
{line: 12,column: 11},
1229
+
{line: 11,column: 11},
1230
+
],
1231
+
},
1232
+
]);
1233
+
});
1234
+
1235
+
it('encounters nested conflict in fragments',()=>{
1236
+
expectErrors(`
1237
+
{
1238
+
connection {
1239
+
edges {
1240
+
...WithArgs(x: 3)
1241
+
}
1242
+
}
1243
+
...Connection
1244
+
}
1245
+
fragment Connection on Type {
1246
+
connection {
1247
+
edges {
1248
+
...WithArgs(x: 4)
1249
+
}
1250
+
}
1251
+
}
1252
+
fragment WithArgs($x: Int) on Type {
1253
+
a(x: $x)
1254
+
}
1255
+
`).toDeepEqual([
1256
+
{
1257
+
message:
1258
+
'Spreads "WithArgs" conflict because WithArgs(x: 3) and WithArgs(x: 4) have different fragment arguments.',
0 commit comments