我有一个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/