About queries
Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.
For more information, see "Forming calls with GraphQL."
Note: For GitHub App requests made with user access tokens, you should use separate queries for issues and pull requests. For example, use the is:issue
or is:pull-request
filters and their equivalents. Using the search
connection to return a combination of issues and pull requests in a single query will result in an empty set of nodes.
codeOfConduct
Look up a code of conduct by its key.
형식: CodeOfConduct
에 대한 인수 codeOfConduct
이름 | Description |
---|---|
| The code of conduct's key. |
license
Look up an open source license by its key.
nodes
Lookup nodes by a list of IDs.
organization
Lookup a organization by login.
형식: Organization
에 대한 인수 organization
이름 | Description |
---|---|
| The organization's login. |
organizations
A list of organizations.
에 대한 인수 organizations
이름 | Description |
---|---|
| 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. |
rateLimit
The client's rate limit information.
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
에 대한 인수 repositoryOwner
이름 | Description |
---|---|
| The username to lookup the owner by. |
search
Perform a search across resources.
에 대한 인수 search
이름 | Description |
---|---|
| 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.
에 대한 인수 securityAdvisories
이름 | Description |
---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| A list of classifications to filter advisories by. |
| 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
에 대한 인수 securityAdvisory
이름 | Description |
---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
에 대한 인수 securityVulnerabilities
이름 | Description |
---|---|
| Returns the elements in the list that come after the specified cursor. |
| Returns the elements in the list that come before the specified cursor. |
| A list of advisory classifications to filter vulnerabilities by. |
| 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. |
users
A list of users.
형식: UserConnection!
에 대한 인수 users
이름 | Description |
---|---|
| 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. |