Skip to main content

Enterprise Server 3.15 actualmente está disponible como versión candidata para lanzamiento.

Una unión es un tipo de objeto que representa muchos objetos.

Acerca de las uniones

Una unión es un tipo de objeto que representa muchos objetos.

Por ejemplo, un campo marcado como ProjectCardItem podría ser Issue o PullRequest porque cada uno de esos objetos puede estar dentro de una tarjeta de proyecto. Utilizar una unión en vez de un objeto te otorga flexibilidad.

Para obtener más información, vea «Introducción a GraphQL».

Assignee

Types that can be assigned to issues.

Tipos posibles para Assignee

AuditEntryActor

Types that can initiate an audit log event.

Tipos posibles para AuditEntryActor

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Tipos posibles para BranchActorAllowanceActor

BypassActor

Types that can represent a repository ruleset bypass actor.

Tipos posibles para BypassActor

Claimable

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

Tipos posibles para Claimable

Closer

The object which triggered a ClosedEvent.

Tipos posibles para Closer

CreatedIssueOrRestrictedContribution

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

Tipos posibles para CreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Tipos posibles para CreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Tipos posibles para CreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Tipos posibles para DeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Tipos posibles para EnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Tipos posibles para IpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Tipos posibles para IssueOrPullRequest

MilestoneItem

Types that can be inside a Milestone.

Tipos posibles para MilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Tipos posibles para OrganizationAuditEntry

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Tipos posibles para OrganizationOrUser

PermissionGranter

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

Tipos posibles para PermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Tipos posibles para PinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Tipos posibles para ProjectCardItem

ProjectV2Actor

Possible collaborators for a project.

Tipos posibles para ProjectV2Actor

ProjectV2FieldConfiguration

Configurations for project fields.

Tipos posibles para ProjectV2FieldConfiguration

ProjectV2ItemContent

Types that can be inside Project Items.

Tipos posibles para ProjectV2ItemContent

PullRequestTimelineItems

An item in a pull request timeline.

Tipos posibles para PullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Tipos posibles para PushAllowanceActor

Reactor

Types that can be assigned to reactions.

Tipos posibles para Reactor

ReferencedSubject

Any referencable object.

Tipos posibles para ReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Tipos posibles para RenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Tipos posibles para RequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Tipos posibles para ReviewDismissalAllowanceActor

RuleSource

Types which can have RepositoryRule objects.

Tipos posibles para RuleSource

SearchResultItem

The results of a search.

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Tipos posibles para StatusCheckRollupContext

UserListItems

Types that can be added to a user list.

Tipos posibles para UserListItems

VerifiableDomainOwner

Types that can own a verifiable domain.

Tipos posibles para VerifiableDomainOwner