关于查询
每个 GraphQL 架构的查询和突变都有� �类型。 查询类型定义从服务器中检索数据的 GraphQL 操作。
有关详细信息,请参阅“关于查询”。
注意:对于用户到服务器 GitHub App 请求,应该为问题和拉取请求使用单独的查询。 例如,使用 is:issue
或 is:pull-request
筛选器及其等效项。 使用 search
连接在单一查询中返回问题和拉取请求的组合将产生一组空节点。
codeOfConduct
Look up a code of conduct by its key.
类型: CodeOfConduct
参数
名称 | 说明 |
---|---|
| The code of conduct's key. |
organization
Lookup a organization by login.
类型: Organization
参数
名称 | 说明 |
---|---|
| The organization's login. |
relay
Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object.
类型: Query!
repositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
类型: RepositoryOwner
参数
名称 | 说明 |
---|---|
| The username to lookup the owner by. |
search
Perform a search across resources.
参数
名称 | 说明 |
---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| Returns the first n elements from the list. |
| Returns the last n elements from the list. |
| The search string to look for. |
| The types of search items to search within. |
securityAdvisories
GitHub Security Advisories.
参数
名称 | 说明 |
---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| Returns the first n elements from the list. |
| Returns the last n elements from the list. |
| Filter advisories to those published since a time in the past. |
| Filter advisories to those updated since a time in the past. |
securityAdvisory
Fetch a Security Advisory by its GHSA ID.
类型: SecurityAdvisory
参数
名称 | 说明 |
---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
参数
名称 | 说明 |
---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| An ecosystem to filter vulnerabilities by. |
| Returns the first n elements from the list. |
| Returns the last n elements from the list. |
| A package name to filter vulnerabilities by. |
| A list of severities to filter vulnerabilities by. |