Skip to main content

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 saber mais, confira Introdução ao GraphQL.

Types that can be assigned to issues.

Os possíveis tipos para Assignee

Types that can initiate an audit log event.

Os possíveis tipos para AuditEntryActor

Types which can be actors for BranchActorAllowance objects.

Os possíveis tipos para BranchActorAllowanceActor

Types that can represent a repository ruleset bypass actor.

Os possíveis tipos para BypassActor

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

Os possíveis tipos para Claimable

The object which triggered a ClosedEvent.

Os possíveis tipos para Closer

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

Os possíveis tipos para CreatedIssueOrRestrictedContribution

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

Os possíveis tipos para CreatedPullRequestOrRestrictedContribution

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

Os possíveis tipos para CreatedRepositoryOrRestrictedContribution

Users and teams.

Os possíveis tipos para DeploymentReviewer

An object that is a member of an enterprise.

Os possíveis tipos para EnterpriseMember

Types that can own an IP allow list.

Os possíveis tipos para IpAllowListOwner

Used for return value of Repository.issueOrPullRequest.

Os possíveis tipos para IssueOrPullRequest

Types that can be inside a Milestone.

Os possíveis tipos para MilestoneItem

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

An audit entry in an organization audit log.

Os possíveis tipos para OrganizationAuditEntry

Used for argument of CreateProjectV2 mutation.

Os possíveis tipos para OrganizationOrUser

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

Os possíveis tipos para PermissionGranter

Types that can be pinned to a profile page.

Os possíveis tipos para PinnableItem

Types that can be inside Project Cards.

Os possíveis tipos para ProjectCardItem

Possible collaborators for a project.

Os possíveis tipos para ProjectV2Actor

Configurations for project fields.

Os possíveis tipos para ProjectV2FieldConfiguration

Types that can be inside Project Items.

Os possíveis tipos para ProjectV2ItemContent

An item in a pull request timeline.

Os possíveis tipos para PullRequestTimelineItems

Types that can be an actor.

Os possíveis tipos para PushAllowanceActor

Types that can be assigned to reactions.

Os possíveis tipos para Reactor

Any referencable object.

Os possíveis tipos para ReferencedSubject

An object which has a renamable title.

Os possíveis tipos para RenamedTitleSubject

Types that can be requested reviewers.

Os possíveis tipos para RequestedReviewer

Types that can be an actor.

Os possíveis tipos para ReviewDismissalAllowanceActor

Types which can have RepositoryRule objects.

Os possíveis tipos para RuleSource

The results of a search.

Entities that can sponsor others via Sponsors.

Os possíveis tipos para Sponsor

Entities that can be sponsored via Sponsors.

Os possíveis tipos para SponsorableItem

A record that can be featured on a Sponsors profile.

Os possíveis tipos para SponsorsListingFeatureableItem

Types that can be inside a StatusCheckRollup context.

Os possíveis tipos para StatusCheckRollupContext

Types that can be added to a user list.

Os possíveis tipos para UserListItems

Types that can own a verifiable domain.

Os possíveis tipos para VerifiableDomainOwner