类型字段定义的验证错误:字段' xxx'在类型中是不确定的,当保存graphQl查询AEM中时
我正在尝试将持续的查询保存在AEM的GraphiQl Explorer中。
我可以正常运行查询,如右侧所示。
但是,如果我尝试“另存为”,我会收到以下错误。 “类型fieldundefined的验证错误:类型'queryType'中的field'冒险''是未定义的“
我也尝试了名为查询,但无用。
query getAdventures {
adventureList {
items {
_path
adventureTitle
adventurePrice
adventureTripLength
adventurePrimaryImage {
... on ImageRef {
_path
mimeType
width
height
}
}
}
}
}
当我可以执行查询罚款时,为什么在保存过程中会给我这样的错误,而正确的语法是什么?
任何帮助都非常感谢。
I am trying to save a persisted query in AEM's GraphiQL Explorer.
I can run the query fine, as seen on the right side.
But if I try "Save As", I get the following error."Validation error of type FieldUndefined: Field 'adventureList' in type 'QueryType' is undefined"
I also tried named query, but no avail.
query getAdventures {
adventureList {
items {
_path
adventureTitle
adventurePrice
adventureTripLength
adventurePrimaryImage {
... on ImageRef {
_path
mimeType
width
height
}
}
}
}
}
Why is it giving me such an error during saving, when I can execute the query fine, and what would be the correct syntax?
Any help is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论