Informationen zu Abfragen
Jedes GraphQL-Schema verfügt über einen Stammtyp für Abfragen und Mutationen. Der Abfragetyp definiert GraphQL-Vorgänge, die Daten vom Server abrufen.
Weitere Informationen finden Sie unter Erstellen von Aufrufen mit GraphQL.
Hinweis
Für GitHub App-Anforderungen, die über Benutzerzugriffstoken erfolgen, sollten Sie separate Abfragen für Issues und Pull Requests verwenden. Verwende z. B. die Filter is:issue oderis:pull-request und ihre Entsprechungen. Die Verwendung der search-Verbindung zum Zurückgeben einer Kombination von Problemen und Pullanforderungen in einer einzelnen Abfrage führt zu einer leeren Gruppe von Knoten.
codeOfConduct
Look up a code of conduct by its key.
Typ: CodeOfConduct
Argumente für codeOfConduct
| Name | BESCHREIBUNG |
|---|---|
| The code of conduct's key. |
codesOfConduct
Look up a code of conduct by its key.
Typ: [CodeOfConduct]
enterprise
Look up an enterprise by URL slug.
Typ: Enterprise
Argumente für enterprise
| Name | BESCHREIBUNG |
|---|---|
| The enterprise invitation token. |
| The enterprise URL slug. |
id
ID of the object.
Typ: ID!
license
Look up an open source license by its key.
Typ: License
Argumente für license
| Name | BESCHREIBUNG |
|---|---|
| The license's downcased SPDX ID. |
licenses
Return a list of known open source licenses.
Typ: [License]!
meta
Return information about the GitHub instance.
Typ: GitHubMetadata!
node
Fetches an object given its ID.
Typ: Node
Argumente für node
| Name | BESCHREIBUNG |
|---|---|
| ID of the object. |
nodes
Lookup nodes by a list of IDs.
Typ: [Node]!
Argumente für nodes
| Name | BESCHREIBUNG |
|---|---|
| The list of node IDs. |
organization
Lookup a organization by login.
Typ: Organization
Argumente für organization
| Name | BESCHREIBUNG |
|---|---|
| The organization's login. |
organizations
A list of organizations.
Argumente für organizations
| Name | BESCHREIBUNG |
|---|---|
| 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. |
| Ordering options for the User's organizations. |
rateLimit
The client's rate limit information.
Typ: RateLimit
Argumente für rateLimit
| Name | BESCHREIBUNG |
|---|---|
| If true, calculate the cost for the query without evaluating it. The default value is |
relay
Workaround for re-exposing the root query object. (Refer to https://github.com/facebook/relay/issues/112 for more information.).
Typ: Query!
repository
Lookup a given repository by the owner and repository name.
Typ: Repository
Argumente für repository
| Name | BESCHREIBUNG |
|---|---|
| Follow repository renames. If disabled, a repository referenced by its old name will return an error. The default value is |
| The name of the repository. |
| The login field of a user or organization. |
repositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
Typ: RepositoryOwner
Argumente für repositoryOwner
| Name | BESCHREIBUNG |
|---|---|
| The username to lookup the owner by. |
resource
Lookup resource by a URL.
Argumente für resource
| Name | BESCHREIBUNG |
|---|---|
| The URL. |
search
Perform a search across resources, returning a maximum of 1,000 results.
Argumente für search
| Name | BESCHREIBUNG |
|---|---|
| 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. GitHub search syntax is supported. For more information, see "Searching on GitHub," "Understanding the search syntax," and "Sorting search results.". |
| The types of search items to search within. |
securityAdvisories
GitHub Security Advisories.
Argumente für securityAdvisories
| Name | BESCHREIBUNG |
|---|---|
| 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. |
| The EPSS percentage to filter advisories by. |
| The EPSS percentile 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.
Typ: SecurityAdvisory
Argumente für securityAdvisory
| Name | BESCHREIBUNG |
|---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
Argumente für securityVulnerabilities
| Name | BESCHREIBUNG |
|---|---|
| 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. |
topic
Look up a topic by name.
Typ: Topic
Argumente für topic
| Name | BESCHREIBUNG |
|---|---|
| The topic's name. |
user
Lookup a user by login.
Typ: User
Argumente für user
| Name | BESCHREIBUNG |
|---|---|
| The user's login. |
users
A list of users.
Typ: UserConnection!
Argumente für users
| Name | BESCHREIBUNG |
|---|---|
| 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. |
viewer
The currently authenticated user.
Typ: User!