Object GitHub::Query
The query root of GitHub's GraphQL interface.
Fields
codeOfConduct(key: String!): CodeOfConduct
Look up a code of conduct by its key
codesOfConduct: [CodeOfConduct]
Look up a code of conduct by its key
enterprise(slug: String!, invitationToken: String): Enterprise
Look up an enterprise by URL slug.
Args
invitationToken: String
The enterprise invitation token.
enterpriseAdministratorInvitation(userLogin: String!, enterpriseSlug: String!, role: EnterpriseAdministratorRole!): EnterpriseAdministratorInvitation
Look up a pending enterprise administrator invitation by invitee, enterprise and role.
Args
enterpriseSlug: String!
The slug of the enterprise the user was invited to join.
role: EnterpriseAdministratorRole!
The role for the business member invitation.
enterpriseAdministratorInvitationByToken(invitationToken: String!): EnterpriseAdministratorInvitation
Look up a pending enterprise administrator invitation by invitation token.
Args
invitationToken: String!
The invitation token sent with the invitation email.
license(key: String!): License
Look up an open source license by its key
licenses: [License]!
Return a list of known open source licenses
marketplaceCategories(includeCategories: [String!], excludeEmpty: Boolean, excludeSubcategories: Boolean): [MarketplaceCategory!]!
Get alphabetically sorted list of Marketplace categories
Args
includeCategories: [String!]
Return only the specified categories.
excludeEmpty: Boolean
Exclude categories with no listings.
excludeSubcategories: Boolean
Returns top level categories only, excluding any subcategories.
marketplaceCategory(slug: String!, useTopicAliases: Boolean): MarketplaceCategory
Look up a Marketplace category by its slug.
Args
useTopicAliases: Boolean
Also check topic aliases for the category slug
marketplaceListing(slug: String!): MarketplaceListing
Look up a single Marketplace listing
marketplaceListings(after: String, before: String, first: Int, last: Int, categorySlug: String, useTopicAliases: Boolean, viewerCanAdmin: Boolean, adminId: ID, organizationId: ID, allStates: Boolean, slugs: [String], primaryCategoryOnly: Boolean = false, withFreeTrialsOnly: Boolean = false): MarketplaceListingConnection!
Look up Marketplace listings
Args
categorySlug: String
Select only listings with the given category.
useTopicAliases: Boolean
Also check topic aliases for the category slug
viewerCanAdmin: Boolean
Select listings to which user has admin access. If omitted, listings visible to the viewer are returned.
organizationId: ID
Select listings for products owned by the specified organization.
allStates: Boolean
Select listings visible to the viewer even if they are not approved. If omitted or false, only approved listings will be returned.
primaryCategoryOnly: Boolean = false
Select only listings where the primary category matches the given category slug.
withFreeTrialsOnly: Boolean = false
Select only listings that offer a free trial.
meta: GitHubMetadata!
Return information about the GitHub instance
node(id: ID!): Node
Fetches an object given its ID.
nodes(ids: [ID!]!): [Node]!
Lookup nodes by a list of IDs.
organization(login: String!): Organization
Lookup a organization by login.
rateLimit(dryRun: Boolean = false): RateLimit
The client's rate limit information.
relay: Query!
Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object
repository(owner: String!, name: String!): Repository
Lookup a given repository by the owner and repository name.
repositoryOwner(login: String!): RepositoryOwner
Lookup a repository owner (ie. either a User or an Organization) by login.
resource(url: URI!): UniformResourceLocatable
Lookup resource by a URL.
search(after: String, before: String, first: Int, last: Int, query: String!, type: SearchType!): SearchResultItemConnection!
Perform a search across resources.
Args
type: SearchType!
The types of search items to search within.
securityAdvisories(orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC}, identifier: SecurityAdvisoryIdentifierFilter, publishedSince: DateTime, updatedSince: DateTime, after: String, before: String, first: Int, last: Int): SecurityAdvisoryConnection!
GitHub Security Advisories
Args
orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC}
Ordering options for the returned topics.
identifier: SecurityAdvisoryIdentifierFilter
Filter advisories by identifier, e.g. GHSA or CVE.
publishedSince: DateTime
Filter advisories to those published since a time in the past.
updatedSince: DateTime
Filter advisories to those updated since a time in the past.
securityAdvisory(ghsaId: String!): SecurityAdvisory
Fetch a Security Advisory by its GHSA ID
securityVulnerabilities(orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}, ecosystem: SecurityAdvisoryEcosystem, package: String, severities: [SecurityAdvisorySeverity!], after: String, before: String, first: Int, last: Int): SecurityVulnerabilityConnection!
Software Vulnerabilities documented by GitHub Security Advisories
Args
orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC}
Ordering options for the returned topics.
ecosystem: SecurityAdvisoryEcosystem
An ecosystem to filter vulnerabilities by.
severities: [SecurityAdvisorySeverity!]
A list of severities to filter vulnerabilities by.
sponsorsListing(slug: String!): SponsorsListing
`Query.sponsorsListing` will be removed. Use `Sponsorable.sponsorsListing` instead. Removal on 2020-04-01 UTC.
Look up a single Sponsors Listing
topic(name: String!): Topic
Look up a topic by name.
user(login: String!): User
Lookup a user by login.
viewer: User!
The currently authenticated user.