Query
Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.
For more information, see "About queries."
Connections
SearchResultItemConnection!)
Perform a search across resources.
| Argument | Type | Description |
|---|---|---|
after |
String
|
Returns the elements in the list that come after the specified global ID. |
before |
String
|
Returns the elements in the list that come before the specified global ID. |
first |
Int
|
Returns the first n elements from the list. |
last |
Int
|
Returns the last n elements from the list. |
query |
String!
|
The search string to look for. |
type |
SearchType!
|
The types of search items to search within. |
Fields
CodeOfConduct)
Look up a code of conduct by its key
| Argument | Type | Description |
|---|---|---|
key |
String!
|
The code of conduct's key |
[CodeOfConduct])
Look up a code of conduct by its key
License)
Look up an open source license by its key
| Argument | Type | Description |
|---|---|---|
key |
String!
|
The license's downcased SPDX ID |
[License]!)
Return a list of known open source licenses
GitHubMetadata!)
Return information about the GitHub instance
[Node]!)
Lookup nodes by a list of IDs.
| Argument | Type | Description |
|---|---|---|
ids |
[ID!]!
|
The list of node IDs. |
Organization)
Lookup a organization by login.
| Argument | Type | Description |
|---|---|---|
login |
String!
|
The organization's login. |
RateLimit)
The client's rate limit information.
| Argument | Type | Description |
|---|---|---|
dryRun |
Boolean
|
If true, calculate the cost for the query without evaluating it |
Query!)
Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object
Repository)
RepositoryOwner)
Lookup a repository owner (ie. either a User or an Organization) by login.
| Argument | Type | Description |
|---|---|---|
login |
String!
|
The username to lookup the owner by. |
UniformResourceLocatable)
Lookup resource by a URL.
| Argument | Type | Description |
|---|---|---|
url |
URI!
|
The URL. |
User!)
The currently authenticated user.
Overview
-
Query
-
Mutations
- acceptTopicSuggestion
- addComment
- addProjectCard
- addProjectColumn
- addPullRequestReview
- addPullRequestReviewComment
- addReaction
- addStar
- createProject
- declineTopicSuggestion
- deleteProject
- deleteProjectCard
- deleteProjectColumn
- deletePullRequestReview
- dismissPullRequestReview
- moveProjectCard
- moveProjectColumn
- removeOutsideCollaborator
- removeReaction
- removeStar
- requestReviews
- submitPullRequestReview
- updateProject
- updateProjectCard
- updateProjectColumn
- updatePullRequestReview
- updatePullRequestReviewComment
- updateSubscription
- updateTopics
-
Objects
- AddedToProjectEvent
- AssignedEvent
- BaseRefChangedEvent
- BaseRefForcePushedEvent
- Blame
- BlameRange
- Blob
- Bot
- ClosedEvent
- CodeOfConduct
- CommentDeletedEvent
- Commit
- CommitComment
- CommitCommentThread
- ConvertedNoteToIssueEvent
- CrossReferencedEvent
- DemilestonedEvent
- DeployedEvent
- Deployment
- DeploymentStatus
- ExternalIdentity
- ExternalIdentitySamlAttributes
- ExternalIdentityScimAttributes
- Gist
- GistComment
- GitActor
- GitHubMetadata
- GpgSignature
- HeadRefDeletedEvent
- HeadRefForcePushedEvent
- HeadRefRestoredEvent
- Issue
- IssueComment
- Label
- LabeledEvent
- Language
- License
- LicenseRule
- LockedEvent
- MentionedEvent
- MergedEvent
- Milestone
- MilestonedEvent
- MovedColumnsInProjectEvent
- Organization
- OrganizationIdentityProvider
- OrganizationInvitation
- PageInfo
- Project
- ProjectCard
- ProjectColumn
- ProtectedBranch
- PullRequest
- PullRequestCommit
- PullRequestReview
- PullRequestReviewComment
- PullRequestReviewThread
- PushAllowance
- RateLimit
- Reaction
- ReactionGroup
- Ref
- ReferencedEvent
- Release
- ReleaseAsset
- RemovedFromProjectEvent
- RenamedTitleEvent
- ReopenedEvent
- Repository
- RepositoryInvitation
- RepositoryInvitationRepository
- RepositoryTopic
- ReviewDismissalAllowance
- ReviewDismissedEvent
- ReviewRequest
- ReviewRequestRemovedEvent
- ReviewRequestedEvent
- SmimeSignature
- Status
- StatusContext
- SubscribedEvent
- SuggestedReviewer
- Tag
- Team
- Topic
- Tree
- TreeEntry
- UnassignedEvent
- UnknownSignature
- UnlabeledEvent
- UnlockedEvent
- UnsubscribedEvent
- User
- UserContentEdit
-
Interfaces
-
Enums
- CollaboratorAffiliation
- CommentAuthorAssociation
- CommentCannotUpdateReason
- DefaultRepositoryPermissionField
- DeploymentState
- DeploymentStatusState
- GistOrderField
- GistPrivacy
- GitSignatureState
- IssueOrderField
- IssuePubSubTopic
- IssueState
- LanguageOrderField
- MergeableState
- MilestoneState
- OrderDirection
- OrganizationInvitationRole
- OrganizationInvitationType
- ProjectCardState
- ProjectOrderField
- ProjectState
- PullRequestPubSubTopic
- PullRequestReviewEvent
- PullRequestReviewState
- PullRequestState
- ReactionContent
- ReactionOrderField
- RefOrderField
- RepositoryAffiliation
- RepositoryCollaboratorAffiliation
- RepositoryLockReason
- RepositoryOrderField
- RepositoryPermission
- RepositoryPrivacy
- SearchType
- StarOrderField
- StatusState
- SubscriptionState
- TeamMemberRole
- TeamMembershipType
- TeamOrderField
- TeamPrivacy
- TeamRepositoryOrderField
- TeamRole
- TopicSuggestionDeclineReason
-
Unions
-
Input Objects
-
Scalars