【发布时间】:2019-10-06 17:29:30
【问题描述】:
我有这个正在运行的查询:
{
ArticleGalleriesCollection(limit: 2, locale: "en", where: {articleTitle: "Hello"}) {
items {
articleTitle
articleGalleryType {
type
width
height
}
articleAssetsElementsCollection(limit: 100) {
items {
fileName
url
contentType
width
height
size
}
}
}
}
}
我想更新我的 where 参数告诉 graphQL 只过滤 ArticleGalleriesCollection 中的文章 articleGalleryType 为 type="standard"
我应该如何更新我的查询?
架构: ArticleGalleriesCollection 中的每个项目都有一个 1:1 的 articleGalleryType 和 type 属性
【问题讨论】:
-
好吧,如果我们不知道您的架构或您的 GraphQL 服务器是什么,我们该如何提供帮助?
-
更新了问题...认为架构定义可以直接从查询中得到。对不起。不明白为什么要指定服务器...
-
这根本没有帮助。该模式还将详细说明
where子句。例如,您目前拥有where: {articleTitle: "Hello"},但我无法建议如何更改它。
标签: graphql