【发布时间】:2017-11-14 09:55:26
【问题描述】:
我想执行这样的查询:
{
houses(owner: "Thomas") {
id
color
cars(type: "Sports Car") {
name
year
}
}
}
但这会返回错误:
"message": "Unknown argument \"type\" on field \"cars\" of type \"House\".",
但是,我能够正确执行此操作:
cars(type: "Sports Car") {
name
year
}
我正在尝试做的事情是否可能?
提前致谢!
【问题讨论】:
-
这是可能的。请问您可以发布您的类型吗?
-
这取决于你如何设置你的schema
标签: node.js express ecmascript-6 graphql graphql-js