【发布时间】:2023-03-08 15:00:02
【问题描述】:
我正在尝试在 Githubs GraphQL api 上运行以下查询:
{
user(login: "davekaj") {
id
repositories(first: 10, orderBy: {field: NAME, direction: ASC}) {
nodes {
ref(qualifiedName: "master") {
target {
... on Commit {
history(first: 15, author: "WHAT DO I PUT HERE") {
totalCount
nodes {
additions
author {
name
user {
id
}
}
committedDate
deletions
}
}
}
}
}
}
}
}
}
它要我在CommitAuthor 上过滤history(author: )。我尝试传递我的用户名或我的唯一用户 ID,但它不起作用。我实际上是在传递一个字符串,但它需要CommitAuthor 类型。如何传递CommitAuthor 值?
我不清楚,我搜索了文档和架构,但找不到任何东西。
请帮忙!
【问题讨论】:
标签: graphql github-api github-api-v4