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
auto query = R"(fragment sentientFragment on Sentient {
1127
+
... on Dog {
1128
+
barkVolume
1129
+
}
1130
+
}
1131
+
1132
+
fragment humanOrAlienFragment on HumanOrAlien {
1133
+
... on Cat {
1134
+
meowVolume
1135
+
}
1136
+
})"_graphql;
1137
+
1138
+
auto errors = service::buildErrorValues(_service->validate(query)).release<response::ListType>();
1139
+
1140
+
EXPECT_EQ(errors.size(), 4) << "2 incompatible type + 2 unused fragments";
1141
+
ASSERT_GE(errors.size(), size_t { 2 });
1142
+
EXPECT_EQ(R"js({"message":"Incompatible target type on inline fragment name: Dog","locations":[{"line":2,"column":8}]})js", response::toJSON(std::move(errors[0]))) << "error should match";
1143
+
EXPECT_EQ(R"js({"message":"Incompatible target type on inline fragment name: Cat","locations":[{"line":8,"column":8}]})js", response::toJSON(std::move(errors[1]))) << "error should match";
0 commit comments