Skip to main content

联合是表示多个对象的对象类型。

关于并集

联合是表示多个对象的对象类型。

例如,标记为 ProjectCardItem 的字段可以是 IssuePullRequest,因为所有这些对象都可以位于一个项目卡中。 使用并集代替对象可以带来灵活性。

有关详细信息,请参阅“GraphQL 简介”。

Assignee

Types that can be assigned to issues.

Assignee 可能的类型

AuditEntryActor

Types that can initiate an audit log event.

AuditEntryActor 可能的类型

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

BranchActorAllowanceActor 可能的类型

BypassActor

Types that can represent a repository ruleset bypass actor.

BypassActor 可能的类型

Claimable

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

Claimable 可能的类型

Closer

The object which triggered a ClosedEvent.

Closer 可能的类型

CreatedIssueOrRestrictedContribution

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

CreatedIssueOrRestrictedContribution 可能的类型

CreatedPullRequestOrRestrictedContribution

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

CreatedPullRequestOrRestrictedContribution 可能的类型

CreatedRepositoryOrRestrictedContribution

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

CreatedRepositoryOrRestrictedContribution 可能的类型

DeploymentReviewer

Users and teams.

DeploymentReviewer 可能的类型

EnterpriseMember

An object that is a member of an enterprise.

EnterpriseMember 可能的类型

IpAllowListOwner

Types that can own an IP allow list.

IpAllowListOwner 可能的类型

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

IssueOrPullRequest 可能的类型

MilestoneItem

Types that can be inside a Milestone.

MilestoneItem 可能的类型

OrganizationAuditEntry

An audit entry in an organization audit log.

OrganizationAuditEntry 可能的类型

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

OrganizationOrUser 可能的类型

PermissionGranter

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

PermissionGranter 可能的类型

PinnableItem

Types that can be pinned to a profile page.

PinnableItem 可能的类型

ProjectCardItem

Types that can be inside Project Cards.

ProjectCardItem 可能的类型

ProjectV2Actor

Possible collaborators for a project.

ProjectV2Actor 可能的类型

ProjectV2FieldConfiguration

Configurations for project fields.

ProjectV2FieldConfiguration 可能的类型

ProjectV2ItemContent

Types that can be inside Project Items.

ProjectV2ItemContent 可能的类型

PullRequestTimelineItems

An item in a pull request timeline.

PullRequestTimelineItems 可能的类型

PushAllowanceActor

Types that can be an actor.

PushAllowanceActor 可能的类型

Reactor

Types that can be assigned to reactions.

Reactor 可能的类型

ReferencedSubject

Any referencable object.

ReferencedSubject 可能的类型

RenamedTitleSubject

An object which has a renamable title.

RenamedTitleSubject 可能的类型

RequestedReviewer

Types that can be requested reviewers.

RequestedReviewer 可能的类型

ReviewDismissalAllowanceActor

Types that can be an actor.

ReviewDismissalAllowanceActor 可能的类型

RuleSource

Types which can have RepositoryRule objects.

RuleSource 可能的类型

SearchResultItem

The results of a search.

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

StatusCheckRollupContext 可能的类型

UserListItems

Types that can be added to a user list.

UserListItems 可能的类型

VerifiableDomainOwner

Types that can own a verifiable domain.

VerifiableDomainOwner 可能的类型