Skip to main content

Unions

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 findest du unter Einführung in GraphQL.

Assignee

Types that can be assigned to issues.

AuditEntryActor

Types that can initiate an audit log event.

Mögliche Typen

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Mögliche Typen

Claimable

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

Mögliche Typen

Closer

The object which triggered a ClosedEvent.

Mögliche Typen

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.

Mögliche Typen

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.

Mögliche Typen

MilestoneItem

Types that can be inside a Milestone.

Mögliche Typen

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Mögliche Typen

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Mögliche Typen

PermissionGranter

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

PinnableItem

Types that can be pinned to a profile page.

Mögliche Typen

ProjectCardItem

Types that can be inside Project Cards.

Mögliche Typen

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.

Mögliche Typen

PushAllowanceActor

Types that can be an actor.

Mögliche Typen

Reactor

Types that can be assigned to reactions.

ReferencedSubject

Any referencable object.

Mögliche Typen

RenamedTitleSubject

An object which has a renamable title.

Mögliche Typen

RequestedReviewer

Types that can be requested reviewers.

Mögliche Typen

ReviewDismissalAllowanceActor

Types that can be an actor.

Mögliche Typen

SearchResultItem

The results of a search.

Entities that can sponsor others via GitHub Sponsors.

Mögliche Typen

SponsorableItem

Entities that can be sponsored via GitHub Sponsors.

Mögliche Typen

SponsorsListingFeatureableItem

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

Mögliche Typen

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Mögliche Typen

VerifiableDomainOwner

Types that can own a verifiable domain.

Mögliche Typen