当我在请求中未使用别名时,我收到错误“FieldsConflict 类型的验证错误”。请确认这是预期的还是有解决方法
{
person(search: [{firstname: "DAN", lastname: "WATLER", country: "FRANCE"}])
{
firstname
lastname
country
age
address
}
person(search: [{firstname: "FRANK", lastname: "TEE", country: "FRANCE"}])
{
firstname
lastname
country
age
address
}
}
上面的代码给出了验证错误,但如果我使用下面显示的别名,则不会出现错误并且我得到成功的响应。
我不想使用别名,请提出任何解决方法。谢谢 !
{
dan: person(search: [{firstname: "DAN", lastname: "WATLER", country: "FRANCE"}])
{
firstname
lastname
country
age
address
}
frank: person(search: [{firstname: "FRANK", lastname: "TEE", country: "FRANCE"}])
{
firstname
lastname
country
age
address
}
}