Thanks to visit codestin.com
Credit goes to docs.github.com

Skip to main content

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

Assignee

Types that can be assigned to issues.

Os possíveis tipos paraAssignee

AuditEntryActor

Types that can initiate an audit log event.

Os possíveis tipos paraAuditEntryActor

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Os possíveis tipos paraBranchActorAllowanceActor

BypassActor

Types that can represent a repository ruleset bypass actor.

Os possíveis tipos paraBypassActor

Claimable

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

Os possíveis tipos paraClaimable

Closer

The object which triggered a ClosedEvent.

Os possíveis tipos paraCloser

CreatedIssueOrRestrictedContribution

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

Os possíveis tipos paraCreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Os possíveis tipos paraCreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Os possíveis tipos paraCreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Os possíveis tipos paraDeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Os possíveis tipos paraEnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Os possíveis tipos paraIpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Os possíveis tipos paraIssueOrPullRequest

IssueTimelineItems

An item in an issue timeline.

Os possíveis tipos paraIssueTimelineItems

MilestoneItem

Types that can be inside a Milestone.

Os possíveis tipos paraMilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Os possíveis tipos paraOrganizationAuditEntry

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Os possíveis tipos paraOrganizationOrUser

PermissionGranter

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

Os possíveis tipos paraPermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Os possíveis tipos paraPinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Os possíveis tipos paraProjectCardItem

ProjectV2Actor

Possible collaborators for a project.

Os possíveis tipos paraProjectV2Actor

ProjectV2FieldConfiguration

Configurations for project fields.

Os possíveis tipos paraProjectV2FieldConfiguration

ProjectV2ItemContent

Types that can be inside Project Items.

Os possíveis tipos paraProjectV2ItemContent

PullRequestTimelineItems

An item in a pull request timeline.

Os possíveis tipos paraPullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Os possíveis tipos paraPushAllowanceActor

Reactor

Types that can be assigned to reactions.

Os possíveis tipos paraReactor

ReferencedSubject

Any referencable object.

Os possíveis tipos paraReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Os possíveis tipos paraRenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Os possíveis tipos paraRequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Os possíveis tipos paraReviewDismissalAllowanceActor

RuleSource

Types which can have RepositoryRule objects.

Os possíveis tipos paraRuleSource

SearchResultItem

The results of a search.

Entities that can sponsor others via GitHub Sponsors.

Os possíveis tipos paraSponsor

SponsorableItem

Entities that can be sponsored via GitHub Sponsors.

Os possíveis tipos paraSponsorableItem

SponsorsListingFeatureableItem

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

Os possíveis tipos paraSponsorsListingFeatureableItem

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Os possíveis tipos paraStatusCheckRollupContext

UserListItems

Types that can be added to a user list.

Os possíveis tipos paraUserListItems

VerifiableDomainOwner

Types that can own a verifiable domain.

Os possíveis tipos paraVerifiableDomainOwner