Skip to main content

Unions

About unions

A union is a type of object representing many objects.

For example, a field marked as an ProjectCardItem could be an Issue or a PullRequest because each of those objects can be inside a project card. Using a union instead of an object gives you flexibility.

For more information, see "Introduction to GraphQL."

Assignee

Types that can be assigned to issues.

AuditEntryActor

Types that can initiate an audit log event.

取り得る型

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

取り得る型

Closer

The object which triggered a ClosedEvent.

取り得る型

CreatedIssueOrRestrictedContribution

Represents either a issue the viewer can access or a restricted contribution.

CreatedPullRequestOrRestrictedContribution

Represents either a pull request the viewer can access or a restricted contribution.

CreatedRepositoryOrRestrictedContribution

Represents either a repository the viewer can access or a restricted contribution.

DeploymentReviewer

Users and teams.

取り得る型

EnterpriseMember

An object that is a member of an enterprise.

IpAllowListOwner

Types that can own an IP allow list.

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

取り得る型

MilestoneItem

Types that can be inside a Milestone.

取り得る型

OrgRestoreMemberAuditEntryMembership

Types of memberships that can be restored for an Organization member.

OrganizationAuditEntry

An audit entry in an organization audit log.

取り得る型

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

取り得る型

PermissionGranter

Types that can grant permissions on a repository to a user.

PinnableItem

Types that can be pinned to a profile page.

取り得る型

ProjectCardItem

Types that can be inside Project Cards.

取り得る型

ProjectNextItemContent

Types that can be inside Project Items.

ProjectV2FieldConfiguration

Configurations for project fields.

ProjectV2ItemContent

Types that can be inside Project Items.

PullRequestTimelineItems

An item in a pull request timeline.

取り得る型

PushAllowanceActor

Types that can be an actor.

取り得る型

Reactor

Types that can be assigned to reactions.

ReferencedSubject

Any referencable object.

取り得る型

RenamedTitleSubject

An object which has a renamable title.

取り得る型

RequestedReviewer

Types that can be requested reviewers.

取り得る型

ReviewDismissalAllowanceActor

Types that can be an actor.

取り得る型

SearchResultItem

The results of a search.

Entities that can sponsor others via GitHub Sponsors.

取り得る型

SponsorableItem

Entities that can be sponsored via GitHub Sponsors.

取り得る型

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

取り得る型

VerifiableDomainOwner

Types that can own a verifiable domain.

取り得る型