Skip to main content
We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation.

Uniões

Uma união é um tipo de objeto que representa muitos objetos.

Sobre uniões

Uma união é um tipo de objeto que representa muitos objetos.

Por exemplo, um campo marcado como um ProjectCardItem pode ser um Issue ou uma PullRequest, porque cada um desses objetos pode estar dentro de um cartão de projeto. Usar uma união em vez de um objeto dá flexibilidade.

Para obter mais informações, confira "Introdução ao GraphQL".

Assignee

Types that can be assigned to issues.

AuditEntryActor

Types that can initiate an audit log event.

Possible types

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Possible types

Claimable

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

Possible types

Closer

The object which triggered a ClosedEvent.

Possible types

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.

Possible types

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.

Possible types

MilestoneItem

Types that can be inside a Milestone.

Possible types

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Possible types

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Possible types

PermissionGranter

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

PinnableItem

Types that can be pinned to a profile page.

Possible types

ProjectCardItem

Types that can be inside Project Cards.

Possible types

ProjectV2FieldConfiguration

Configurations for project fields.

ProjectV2ItemContent

Types that can be inside Project Items.

PullRequestTimelineItems

An item in a pull request timeline.

Possible types

PushAllowanceActor

Types that can be an actor.

Possible types

Reactor

Types that can be assigned to reactions.

ReferencedSubject

Any referencable object.

Possible types

RenamedTitleSubject

An object which has a renamable title.

Possible types

RequestedReviewer

Types that can be requested reviewers.

Possible types

ReviewDismissalAllowanceActor

Types that can be an actor.

Possible types

SearchResultItem

The results of a search.

Entities that can sponsor others via GitHub Sponsors.

Possible types

SponsorableItem

Entities that can be sponsored via GitHub Sponsors.

Possible types

SponsorsListingFeatureableItem

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

Possible types

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Possible types

VerifiableDomainOwner

Types that can own a verifiable domain.