我正在运行苦艾酒查询,其中包含三个参数字段,它们都是整数列表。
@desc "Fetches resolutions of Taiga ids"
field :taiga_ids, :taiga_entities do
arg :usIds, list_of(:integer)
arg :taskIds, list_of(:integer)
arg :issueIds, list_of(:integer)
resolve &Resolvers.Bridges.fetch_taiga_ids/3
end
object :taiga_entities do
field :uss, list_of(:taiga_us)
field :tasks, list_of(:taiga_task)
field :issues, list_of(:taiga_issue)
end
我还使用 Insomnia 发送查询并使用结果。据我所知,一切都正确编写,类型得到尊重,参数输入正确。
{
taigaIds(usIds: [1914], taskIds: [], issueIds: [7489]) {
uss {
id
ref
subject
}
issues {
id
ref
subject
}
}
}
但是我收到以下错误,这没有任何意义。
{
"errors": [
{
"message": "Unknown argument \"usIds\" on field \"taigaIds\" of type \"RootQueryType\".",
"locations": [
{
"line": 2,
"column": 0
}
]
},
{
"message": "Unknown argument \"taskIds\" on field \"taigaIds\" of type \"RootQueryType\".",
"locations": [
{
"line": 2,
"column": 0
}
]
},
{
"message": "Unknown argument \"issueIds\" on field \"taigaIds\" of type \"RootQueryType\".",
"locations": [
{
"line": 2,
"column": 0
}
]
}
]
}
任何想法为什么?