gpt4 book ai didi

github - Github graphQL订购

转载 作者:行者123 更新时间:2023-12-03 12:14:59 26 4
gpt4 key购买 nike

我有一个GraphQL查询。
我不明白为什么它不起作用。

{
repositoryOwner(login: "Naramsim") {
login
repositories(first: 3, isFork: true, orderBy: {field: CREATED_AT}) {
edges {
node {
description
}
}
}
}
}

Link

最佳答案

你有个错误

Argument 'orderBy' on Field 'repositories' has an invalid value.
Expected type 'RepositoryOrder'.

您忘记指定标记为强制性的方向。这将起作用:
{
repositoryOwner(login: "Naramsim") {
login
repositories(first: 3, isFork: true, orderBy: {field: CREATED_AT, direction: ASC}) {
edges {
node {
description
}
}
}
}
}

关于github - Github graphQL订购,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39551325/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com