Queries
#
codeOfConductType: CodeOfConduct
Look up a code of conduct by its key
Arguments
Name | Description |
---|---|
keyString! | The code of conduct's key |
#
codesOfConductType: [CodeOfConduct]
Look up a code of conduct by its key
#
enterpriseType: Enterprise
Look up an enterprise by URL slug.
Arguments
Name | Description |
---|---|
invitationTokenString | The enterprise invitation token. |
slugString! | The enterprise URL slug. |
#
enterpriseAdministratorInvitationType: EnterpriseAdministratorInvitation
Look up a pending enterprise administrator invitation by invitee, enterprise and role.
Arguments
Name | Description |
---|---|
enterpriseSlugString! | The slug of the enterprise the user was invited to join. |
roleEnterpriseAdministratorRole! | The role for the business member invitation. |
userLoginString! | The login of the user invited to join the business. |
#
enterpriseAdministratorInvitationByTokenType: EnterpriseAdministratorInvitation
Look up a pending enterprise administrator invitation by invitation token.
Arguments
Name | Description |
---|---|
invitationTokenString! | The invitation token sent with the invitation email. |
#
licenseType: License
Look up an open source license by its key
Arguments
Name | Description |
---|---|
keyString! | The license's downcased SPDX ID |
#
licensesType: [License]!
Return a list of known open source licenses
#
marketplaceCategoriesType: [MarketplaceCategory!]!
Get alphabetically sorted list of Marketplace categories
Arguments
Name | Description |
---|---|
excludeEmptyBoolean | Exclude categories with no listings. |
excludeSubcategoriesBoolean | Returns top level categories only, excluding any subcategories. |
includeCategories[String!] | Return only the specified categories. |
#
marketplaceCategoryType: MarketplaceCategory
Look up a Marketplace category by its slug.
Arguments
Name | Description |
---|---|
slugString! | The URL slug of the category. |
useTopicAliasesBoolean | Also check topic aliases for the category slug |
#
marketplaceListingType: MarketplaceListing
Look up a single Marketplace listing
Arguments
Name | Description |
---|---|
slugString! | Select the listing that matches this slug. It's the short name of the listing used in its URL. |
#
marketplaceListingsType: MarketplaceListingConnection!
Look up Marketplace listings
Arguments
Name | Description |
---|---|
adminIdID | Select listings that can be administered by the specified user. |
afterString | Returns the elements in the list that come after the specified cursor. |
allStatesBoolean | Select listings visible to the viewer even if they are not approved. If omitted or false, only approved listings will be returned. |
beforeString | Returns the elements in the list that come before the specified cursor. |
categorySlugString | Select only listings with the given category. |
firstInt | Returns the first n elements from the list. |
lastInt | Returns the last n elements from the list. |
organizationIdID | Select listings for products owned by the specified organization. |
primaryCategoryOnlyBoolean | Select only listings where the primary category matches the given category slug. |
slugs[String] | Select the listings with these slugs, if they are visible to the viewer. |
useTopicAliasesBoolean | Also check topic aliases for the category slug |
viewerCanAdminBoolean | Select listings to which user has admin access. If omitted, listings visible to the viewer are returned. |
withFreeTrialsOnlyBoolean | Select only listings that offer a free trial. |
#
metaType: GitHubMetadata!
Return information about the GitHub instance
#
nodeType: Node
Fetches an object given its ID.
Arguments
Name | Description |
---|---|
idID! | ID of the object. |
#
nodesType: [Node]!
Lookup nodes by a list of IDs.
Arguments
Name | Description |
---|---|
ids[ID!]! | The list of node IDs. |
#
organizationType: Organization
Lookup a organization by login.
Arguments
Name | Description |
---|---|
loginString! | The organization's login. |
#
rateLimitType: RateLimit
The client's rate limit information.
Arguments
Name | Description |
---|---|
dryRunBoolean | If true, calculate the cost for the query without evaluating it |
#
relayType: Query!
Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object
#
repositoryType: Repository
Lookup a given repository by the owner and repository name.
Arguments
Name | Description |
---|---|
nameString! | The name of the repository |
ownerString! | The login field of a user or organization |
#
repositoryOwnerType: RepositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
Arguments
Name | Description |
---|---|
loginString! | The username to lookup the owner by. |
#
resourceType: UniformResourceLocatable
Lookup resource by a URL.
Arguments
Name | Description |
---|---|
urlURI! | The URL. |
#
searchType: SearchResultItemConnection!
Perform a search across resources.
Arguments
Name | Description |
---|---|
afterString | Returns the elements in the list that come after the specified cursor. |
beforeString | Returns the elements in the list that come before the specified cursor. |
firstInt | Returns the first n elements from the list. |
lastInt | Returns the last n elements from the list. |
queryString! | The search string to look for. |
typeSearchType! | The types of search items to search within. |
#
securityAdvisoriesType: SecurityAdvisoryConnection!
GitHub Security Advisories
Arguments
Name | Description |
---|---|
afterString | Returns the elements in the list that come after the specified cursor. |
beforeString | Returns the elements in the list that come before the specified cursor. |
firstInt | Returns the first n elements from the list. |
identifierSecurityAdvisoryIdentifierFilter | Filter advisories by identifier, e.g. GHSA or CVE. |
lastInt | Returns the last n elements from the list. |
orderBySecurityAdvisoryOrder | Ordering options for the returned topics. |
publishedSinceDateTime | Filter advisories to those published since a time in the past. |
updatedSinceDateTime | Filter advisories to those updated since a time in the past. |
#
securityAdvisoryType: SecurityAdvisory
Fetch a Security Advisory by its GHSA ID
Arguments
Name | Description |
---|---|
ghsaIdString! | GitHub Security Advisory ID. |
#
securityVulnerabilitiesType: SecurityVulnerabilityConnection!
Software Vulnerabilities documented by GitHub Security Advisories
Arguments
Name | Description |
---|---|
afterString | Returns the elements in the list that come after the specified cursor. |
beforeString | Returns the elements in the list that come before the specified cursor. |
ecosystemSecurityAdvisoryEcosystem | An ecosystem to filter vulnerabilities by. |
firstInt | Returns the first n elements from the list. |
lastInt | Returns the last n elements from the list. |
orderBySecurityVulnerabilityOrder | Ordering options for the returned topics. |
packageString | A package name to filter vulnerabilities by. |
severities[SecurityAdvisorySeverity!] | A list of severities to filter vulnerabilities by. |
#
sponsorablesType: SponsorableItemConnection!
Users and organizations who can be sponsored via GitHub Sponsors.
Arguments
Name | Description |
---|---|
afterString | Returns the elements in the list that come after the specified cursor. |
beforeString | Returns the elements in the list that come before the specified cursor. |
dependencyEcosystemSecurityAdvisoryEcosystem | Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true. |
firstInt | Returns the first n elements from the list. |
lastInt | Returns the last n elements from the list. |
onlyDependenciesBoolean | Whether only sponsorables who own the viewer's dependencies will be returned. Must be authenticated to use. Can check an organization instead for their dependencies owned by sponsorables by passing orgLoginForDependencies. |
orderBySponsorableOrder | Ordering options for users and organizations returned from the connection. |
orgLoginForDependenciesString | Optional organization username for whose dependencies should be checked. Used when onlyDependencies = true. Omit to check your own dependencies. If you are not an administrator of the organization, only dependencies from its public repositories will be considered. |
#
sponsorsListingType: SponsorsListing
Deprecated:
Query.sponsorsListing
will be removed. UseSponsorable.sponsorsListing
instead. Removal on 2020-04-01 UTC.
Look up a single Sponsors Listing
Arguments
Name | Description |
---|---|
slugString! | Select the Sponsors listing which matches this slug |
#
topicType: Topic
Look up a topic by name.
Arguments
Name | Description |
---|---|
nameString! | The topic's name. |
#
userType: User
Lookup a user by login.
Arguments
Name | Description |
---|---|
loginString! | The user's login. |
#
viewerType: User!
The currently authenticated user.