Skip to main content

Enterprise Server 3.20 目前作为发布候选版本提供。

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

关于并集

          [联合体](https://spec.graphql.org/June2018/#sec-Unions)是表示多个对象的对象类型。

例如,标记为 ProjectCardItem 的字段可以是 IssuePullRequest,因为每个对象都可以在project卡内。 使用联合代替对象可以带来灵活性。

有关详细信息,请参阅 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 可能类型

CustomPropertySource

Sources which can have custom properties defined.

CustomPropertySource 可能类型

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 可能类型

IssueTimelineItems

An item in an issue timeline.

IssueTimelineItems 可能类型

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.

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 可能类型