【发布时间】:2019-09-19 16:22:37
【问题描述】:
我已经搜索了一段时间,并从 SO 社区获得了很多帮助。但是,我的项目设置似乎不允许正常查询,例如排序、限制、过滤或其他。
我正在查询一个自定义中间件/drupal 站点。
抛出错误的示例:
{
umdHub(limit: 5) {
articles {
data {
id
title
subtitle
body
summary
}
}
}
}
或
{
umdHub(
sort: {
fields: [authorship_date___time]
order: ASC
}
) {
articles {
data {
id
title
subtitle
body
summary
authorship_date {
formatted_short
unix
unix_int
formatted_long
formatted_short
time
}
}
}
}
}
http://localhost:8000/___graphql 中的所有返回错误如:
{
"errors": [
{
"message": "Unknown argument \"limit\" on field \"umdHub\" of type \"Query\".",
"locations": [
{
"line": 2,
"column": 10
}
]
}
]
}
我该如何解决这些问题?
【问题讨论】:
-
你能发布你的解析器吗?