Sobre as consultas
Cada esquema de GraphQL tem um tipo de raiz para consultas e mutações. O tipo de consulta define operações do GraphQL que recuperam dados do servidor.
Para obter mais informações, consulte "Sobre consultas".
Observação: Para solicitações de aplicativo GitHub do tipo usuário para servidor você deve usar consultas separadas para problemas e pull requests. Por exemplo, use os filtros is:issue
ou is:pull-request
e seus equivalentes. Usar a conexão de pesquisa
para retornar uma combinação de problemas e pull requests em uma única consulta resultará em um conjunto de nós vazio.
codeOfConduct
Look up a code of conduct by its key.
Tipo: CodeOfConduct
Argumentos
Nome | Descrição |
---|---|
| The code of conduct's key. |
codesOfConduct
Look up a code of conduct by its key.
Tipo: [CodeOfConduct]
enterprise
Look up an enterprise by URL slug.
Tipo: Enterprise
license
Look up an open source license by its key.
licenses
Return a list of known open source licenses.
Tipo: [License]!
meta
Return information about the GitHub instance.
Tipo: GitHubMetadata!
node
Fetches an object given its ID.
nodes
Lookup nodes by a list of IDs.
organization
Lookup a organization by login.
Tipo: Organization
Argumentos
Nome | Descrição |
---|---|
| The organization's login. |
organizations
A list of organizations.
Tipo: OrganizationConnection!
rateLimit
The client's rate limit information.
Tipo: RateLimit
Argumentos
Nome | Descrição |
---|---|
| If true, calculate the cost for the query without evaluating it. The default value is |
relay
Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object.
Tipo: Query!
repository
Lookup a given repository by the owner and repository name.
Tipo: Repository
repositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
Tipo: RepositoryOwner
Argumentos
Nome | Descrição |
---|---|
| The username to lookup the owner by. |
resource
Lookup resource by a URL.
Tipo: UniformResourceLocatable
Argumentos
Nome | Descrição |
---|---|
| The URL. |
search
Perform a search across resources.
Argumentos
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
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
Nome | Descrição |
---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
Argumentos
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!
viewer
The currently authenticated user.
Tipo: User!