类型字段定义的验证错误:字段' xxx'在类型中是不确定的,当保存graphQl查询AEM中时

发布于 2025-02-13 18:31:40 字数 901 浏览 0 评论 0原文

我正在尝试将持续的查询保存在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.

enter image description here

But if I try "Save As", I get the following error.
"Validation error of type FieldUndefined: Field 'adventureList' in type 'QueryType' is undefined"

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文