À 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 « À propos des requêtes ».
Remarque : pour les requêtes GitHub App utilisateur à serveur, 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
Nom | Description |
---|---|
| The code of conduct's key. |
organization
Lookup a organization by login.
Type: Organization
Arguments
Nom | Description |
---|---|
| The organization's login. |
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
Nom | Description |
---|---|
| The username to lookup the owner by. |
resource
Lookup resource by a URL.
Type: UniformResourceLocatable
Arguments
Nom | Description |
---|---|
| The URL. |
search
Perform a search across resources.
Arguments
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
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. |
| 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
Nom | Description |
---|---|
| GitHub Security Advisory ID. |
securityVulnerabilities
Software Vulnerabilities documented by GitHub Security Advisories.
Arguments
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. |
| 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. |