À propos des requêtes
Chaque schéma GraphQL possède un type racine pour les requêtes et les mutations. Le type de requête définit les opérations GraphQL qui récupèrent les données à partir du serveur.
Pour plus d’informations, consultez « Formation d’appels avec GraphQL ».
Remarque : Pour les requêtes GitHub App effectuées avec des jetons d’accès utilisateur, vous devez utiliser des requêtes distinctes pour les problèmes et les demandes de tirage. Par exemple, utilisez les filtres is:issue
ou is:pull-request
et leurs équivalents. L’utilisation de la connexion search
pour renvoyer une combinaison de problèmes et de demandes de tirage au sein d’une même requête se traduit par un ensemble vide de nœuds.
codeOfConduct
Look up a code of conduct by its key.
Type: CodeOfConduct
Arguments pour codeOfConduct
Nom | Description |
---|---|
| 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.
Type: Organization
Arguments pour organization
Nom | Description |
---|---|
| The organization's login. |
organizations
A list of organizations.
Type: OrganizationConnection!
Arguments pour organizations
Nom | 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.
Type: Query!
repositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
Type: RepositoryOwner
Arguments pour repositoryOwner
Nom | Description |
---|---|
| The username to lookup the owner by. |
resource
Lookup resource by a URL.
Type: UniformResourceLocatable
Arguments pour resource
Nom | Description |
---|---|
| The URL. |
search
Perform a search across resources, returning a maximum of 1,000 results.
Arguments pour search
Nom | 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.
Arguments pour securityAdvisories
Nom | 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.
Type: SecurityAdvisory
Arguments pour securityAdvisory
Nom | Description |
---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
Arguments pour securityVulnerabilities
Nom | 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. |
topic
Look up a topic by name.
user
Lookup a user by login.
users
A list of users.
Type: UserConnection!
Arguments pour users
Nom | 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. |