Skip to main content
Nous publions des mises à jour fréquentes de notre documentation, et la traduction de cette page peut encore être en cours. Pour obtenir les informations les plus actuelles, consultez la documentation anglaise.

Unions

À propos des unions

Une union est un type d’objet représentant de nombreux objets.

Par exemple, un champ marqué comme ProjectCardItem pourrait être un Issue ou une PullRequest, car chacun de ces objets peut se trouver à l’intérieur d’une carte de projet. L’utilisation d’une union au lieu d’un objet offre une certaine flexibilité.

Pour plus d’informations, consultez « Présentation de GraphQL ».

Assignee

Types that can be assigned to issues.

AuditEntryActor

Types that can initiate an audit log event.

Types possibles

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Types possibles

Claimable

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

Types possibles

Closer

The object which triggered a ClosedEvent.

Types possibles

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.

Types possibles

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.

Types possibles

MilestoneItem

Types that can be inside a Milestone.

Types possibles

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Types possibles

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Types possibles

PermissionGranter

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

PinnableItem

Types that can be pinned to a profile page.

Types possibles

ProjectCardItem

Types that can be inside Project Cards.

Types possibles

ProjectV2FieldConfiguration

Configurations for project fields.

ProjectV2ItemContent

Types that can be inside Project Items.

PullRequestTimelineItems

An item in a pull request timeline.

Types possibles

PushAllowanceActor

Types that can be an actor.

Types possibles

Reactor

Types that can be assigned to reactions.

ReferencedSubject

Any referencable object.

Types possibles

RenamedTitleSubject

An object which has a renamable title.

Types possibles

RequestedReviewer

Types that can be requested reviewers.

Types possibles

ReviewDismissalAllowanceActor

Types that can be an actor.

Types possibles

SearchResultItem

The results of a search.

Entities that can sponsor others via GitHub Sponsors.

Types possibles

SponsorableItem

Entities that can be sponsored via GitHub Sponsors.

Types possibles

SponsorsListingFeatureableItem

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

Types possibles

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Types possibles

VerifiableDomainOwner

Types that can own a verifiable domain.

Types possibles