Uniones

En este artículo

Acerca de las uniones

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

Por ejemplo, un campo marcado como un ProjectCardItem podría ser un Issue o una PullRequest ya que cada uno de estos 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, consulta la sección "Introducción a GraphQL".

Assignee

Types that can be assigned to issues.

Tipos posibles


AuditEntryActor

Types that can initiate an audit log event.

Tipos posibles


Closer

The object which triggered a ClosedEvent.

Tipos posibles


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.


EnterpriseMember

An object that is a member of an enterprise.

Tipos posibles


IpAllowListOwner

Types that can own an IP allow list.

Tipos posibles


IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Tipos posibles


MilestoneItem

Types that can be inside a Milestone.

Tipos posibles


OrganizationAuditEntry

An audit entry in an organization audit log.

Tipos posibles


PermissionGranter

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

Tipos posibles


PinnableItem

Types that can be pinned to a profile page.

Tipos posibles


ProjectCardItem

Types that can be inside Project Cards.

Tipos posibles


PullRequestTimelineItems

An item in a pull request timeline.

Tipos posibles


PushAllowanceActor

Types that can be an actor.

Tipos posibles


ReferencedSubject

Any referencable object.

Tipos posibles


RenamedTitleSubject

An object which has a renamable title.

Tipos posibles


RequestedReviewer

Types that can be requested reviewers.

Tipos posibles


ReviewDismissalAllowanceActor

Types that can be an actor.

Tipos posibles


SearchResultItem

The results of a search.


Entites that can sponsor others via GitHub Sponsors.

Tipos posibles


StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Tipos posibles


Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

O, learn how to contribute.