Graphql GithubV4图形QLAPI。按日期获取提交
graphql和Github API的新特性。我正在尝试获取一个按日期排序的提交列表。这就是我到目前为止所做的:Graphql GithubV4图形QLAPI。按日期获取提交,graphql,github-api,Graphql,Github Api,graphql和Github API的新特性。我正在尝试获取一个按日期排序的提交列表。这就是我到目前为止所做的: { repository(owner: "facebook", name: "create-react-app") { ref(qualifiedName: "master") { target { ... on Commit { id history(first: 20) { p
{
repository(owner: "facebook", name: "create-react-app") {
ref(qualifiedName: "master") {
target {
... on Commit {
id
history(first: 20) {
pageInfo {
hasNextPage
}
edges {
node {
messageHeadline
oid
message
}
}
}
}
}
}
这只是返回一个提交历史记录的平面列表。是否有其他对象或连接可用于按日期对结果进行分组
谢谢中没有“groupBy”或“GroupedBy”的概念
您所拥有的只是一个for。你可以看到一个 但这同样适用于存储库属性,而不是提交属性
{
organization(login: "lvtech") {
repositories(first: 3, orderBy: {field: PUSHED_AT, direction: DESC}) {
edges {
node {
name
}
}
}
}
}