Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
GitHub Docs

A union is a type of object representing many objects.

In this article

About unions

Aunion is a type of object representing many objects.

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

For more information, seeIntroduction to GraphQL.

Assignee

Types that can be assigned to issues.

Possible types forAssignee

AuditEntryActor

Types that can initiate an audit log event.

Possible types forAuditEntryActor

BranchActorAllowanceActor

Types which can be actors forBranchActorAllowance objects.

Possible types forBranchActorAllowanceActor

BypassActor

Types that can represent a repository ruleset bypass actor.

Possible types forBypassActor

Claimable

An object which can have its data claimed or claim data from another.

Possible types forClaimable

Closer

The object which triggered aClosedEvent.

Possible types forCloser

CreatedIssueOrRestrictedContribution

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

Possible types forCreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Possible types forCreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Possible types forCreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Possible types forDeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Possible types forEnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Possible types forIpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Possible types forIssueOrPullRequest

MilestoneItem

Types that can be inside a Milestone.

Possible types forMilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Possible types forOrganizationAuditEntry

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Possible types forOrganizationOrUser

PermissionGranter

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

Possible types forPermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Possible types forPinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Possible types forProjectCardItem

ProjectV2Actor

Possible collaborators for a project.

Possible types forProjectV2Actor

ProjectV2FieldConfiguration

Configurations for project fields.

Possible types forProjectV2FieldConfiguration

ProjectV2ItemContent

Types that can be inside Project Items.

Possible types forProjectV2ItemContent

PullRequestTimelineItems

An item in a pull request timeline.

Possible types forPullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Possible types forPushAllowanceActor

Reactor

Types that can be assigned to reactions.

Possible types forReactor

ReferencedSubject

Any referencable object.

Possible types forReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Possible types forRenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Possible types forRequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Possible types forReviewDismissalAllowanceActor

RuleSource

Types which can haveRepositoryRule objects.

Possible types forRuleSource

Sponsor

Entities that can sponsor others via GitHub Sponsors.

Possible types forSponsor

SponsorableItem

Entities that can be sponsored via GitHub Sponsors.

Possible types forSponsorableItem

SponsorsListingFeatureableItem

A record that can be featured on a GitHub Sponsors profile.

Possible types forSponsorsListingFeatureableItem

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Possible types forStatusCheckRollupContext

UserListItems

Types that can be added to a user list.

Possible types forUserListItems

VerifiableDomainOwner

Types that can own a verifiable domain.

Possible types forVerifiableDomainOwner


[8]ページ先頭

©2009-2025 Movatter.jp