Sobre consultas
Cada esquema de GraphQL tem um tipo de raiz para consultas e mutações. O tipo de consulta define as operações do GraphQL que recuperam os dados do servidor.
Para obter mais informações, confira "Realizar chamadas com o GraphQL".
Observação: nas solicitações do GitHub App feitas com tokens de acesso de usuário, você deve usar consultas separadas para problemas e solicitações de pull. Por exemplo, use os filtros is:issue
ou is:pull-request
e os equivalentes. O uso da conexão search
para retornar uma combinação de problemas e solicitações de pull em uma só consulta resultará em um conjunto vazio de nós.
codeOfConduct
Look up a code of conduct by its key.
Tipo: CodeOfConduct
Argumentos para codeOfConduct
Nome | Descrição |
---|---|
| The code of conduct's key. |
license
Look up an open source license by its key.
node
Fetches an object given its ID.
nodes
Lookup nodes by a list of IDs.
organization
Lookup a organization by login.
Tipo: Organization
Argumentos para organization
Nome | Descrição |
---|---|
| The organization's login. |
organizations
A list of organizations.
Tipo: OrganizationConnection!
Argumentos para organizations
Nome | Descrição |
---|---|
| 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.
relay
Workaround for re-exposing the root query object. (Refer to https://github.com/facebook/relay/issues/112 for more information.).
Tipo: Query!
repositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
Tipo: RepositoryOwner
Argumentos para repositoryOwner
Nome | Descrição |
---|---|
| The username to lookup the owner by. |
resource
Lookup resource by a URL.
Tipo: UniformResourceLocatable
Argumentos para resource
Nome | Descrição |
---|---|
| The URL. |
search
Perform a search across resources, returning a maximum of 1,000 results.
Argumentos para search
Nome | Descrição |
---|---|
| 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.
Argumentos para securityAdvisories
Nome | Descrição |
---|---|
| 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.
Tipo: SecurityAdvisory
Argumentos para securityAdvisory
Nome | Descrição |
---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
Argumentos para securityVulnerabilities
Nome | Descrição |
---|---|
| 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.
user
Lookup a user by login.
users
A list of users.
Tipo: UserConnection!
Argumentos para users
Nome | Descrição |
---|---|
| 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. |