Skip to main content

Eine Union ist ein Objekttyp, der viele Objekte repräsentiert.

Informationen zu Unions

Eine Union ist ein Objekttyp, der viele Objekte repräsentiert.

Zum Beispiel könnte ein Feld, das als ProjectCardItem markiert ist, ein Issue oder ein PullRequest sein, weil jedes dieser Objekte in einer Projektkarte enthalten sein kann. Die Verwendung einer Union anstelle eines Objekts bietet dir Flexibilität.

Weitere Informationen finden Sie unter Einführung in GraphQL.

Assignee

Types that can be assigned to issues.

Mögliche Typen fürAssignee

AuditEntryActor

Types that can initiate an audit log event.

Mögliche Typen fürAuditEntryActor

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Mögliche Typen fürBranchActorAllowanceActor

BypassActor

Types that can represent a repository ruleset bypass actor.

Mögliche Typen fürBypassActor

Claimable

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

Mögliche Typen fürClaimable

Closer

The object which triggered a ClosedEvent.

Mögliche Typen fürCloser

CreatedIssueOrRestrictedContribution

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

Mögliche Typen fürCreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Mögliche Typen fürCreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Mögliche Typen fürCreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Mögliche Typen fürDeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Mögliche Typen fürEnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Mögliche Typen fürIpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Mögliche Typen fürIssueOrPullRequest

MilestoneItem

Types that can be inside a Milestone.

Mögliche Typen fürMilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Mögliche Typen fürOrganizationAuditEntry

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Mögliche Typen fürOrganizationOrUser

PermissionGranter

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

Mögliche Typen fürPermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Mögliche Typen fürPinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Mögliche Typen fürProjectCardItem

ProjectV2Actor

Possible collaborators for a project.

Mögliche Typen fürProjectV2Actor

ProjectV2FieldConfiguration

Configurations for project fields.

Mögliche Typen fürProjectV2FieldConfiguration

ProjectV2ItemContent

Types that can be inside Project Items.

Mögliche Typen fürProjectV2ItemContent

PullRequestTimelineItems

An item in a pull request timeline.

Mögliche Typen fürPullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Mögliche Typen fürPushAllowanceActor

Reactor

Types that can be assigned to reactions.

Mögliche Typen fürReactor

ReferencedSubject

Any referencable object.

Mögliche Typen fürReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Mögliche Typen fürRenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Mögliche Typen fürRequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Mögliche Typen fürReviewDismissalAllowanceActor

RuleSource

Types which can have RepositoryRule objects.

Mögliche Typen fürRuleSource

SearchResultItem

The results of a search.

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Mögliche Typen fürStatusCheckRollupContext

UserListItems

Types that can be added to a user list.

Mögliche Typen fürUserListItems

VerifiableDomainOwner

Types that can own a verifiable domain.

Mögliche Typen fürVerifiableDomainOwner