Skip to main content

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

À 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.

Types possibles pour Assignee

AuditEntryActor

Types that can initiate an audit log event.

Types possibles pour AuditEntryActor

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Types possibles pour BranchActorAllowanceActor

BypassActor

Types that can represent a repository ruleset bypass actor.

Types possibles pour BypassActor

Claimable

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

Types possibles pour Claimable

Closer

The object which triggered a ClosedEvent.

Types possibles pour Closer

CreatedIssueOrRestrictedContribution

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

Types possibles pour CreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Types possibles pour CreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Types possibles pour CreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Types possibles pour DeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Types possibles pour EnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Types possibles pour IpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Types possibles pour IssueOrPullRequest

MilestoneItem

Types that can be inside a Milestone.

Types possibles pour MilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Types possibles pour OrganizationAuditEntry

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Types possibles pour OrganizationOrUser

PermissionGranter

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

Types possibles pour PermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Types possibles pour PinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Types possibles pour ProjectCardItem

ProjectV2Actor

Possible collaborators for a project.

Types possibles pour ProjectV2Actor

ProjectV2FieldConfiguration

Configurations for project fields.

Types possibles pour ProjectV2FieldConfiguration

ProjectV2ItemContent

Types that can be inside Project Items.

Types possibles pour ProjectV2ItemContent

PullRequestTimelineItems

An item in a pull request timeline.

Types possibles pour PullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Types possibles pour PushAllowanceActor

Reactor

Types that can be assigned to reactions.

Types possibles pour Reactor

ReferencedSubject

Any referencable object.

Types possibles pour ReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Types possibles pour RenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Types possibles pour RequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Types possibles pour ReviewDismissalAllowanceActor

RuleSource

Types which can have RepositoryRule objects.

Types possibles pour RuleSource

SearchResultItem

The results of a search.

Types possibles pour SearchResultItem

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Types possibles pour StatusCheckRollupContext

VerifiableDomainOwner

Types that can own a verifiable domain.

Types possibles pour VerifiableDomainOwner