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 pourAssignee

AuditEntryActor

Types that can initiate an audit log event.

Types possibles pourAuditEntryActor

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Types possibles pourBranchActorAllowanceActor

BypassActor

Types that can represent a repository ruleset bypass actor.

Types possibles pourBypassActor

Claimable

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

Types possibles pourClaimable

Closer

The object which triggered a ClosedEvent.

Types possibles pourCloser

CreatedIssueOrRestrictedContribution

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

Types possibles pourCreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Types possibles pourCreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Types possibles pourCreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Types possibles pourDeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Types possibles pourEnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Types possibles pourIpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Types possibles pourIssueOrPullRequest

MilestoneItem

Types that can be inside a Milestone.

Types possibles pourMilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Types possibles pourOrganizationAuditEntry

OrganizationOrUser

Used for argument of CreateProjectV2 mutation.

Types possibles pourOrganizationOrUser

PermissionGranter

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

Types possibles pourPermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Types possibles pourPinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Types possibles pourProjectCardItem

ProjectV2Actor

Possible collaborators for a project.

Types possibles pourProjectV2Actor

ProjectV2FieldConfiguration

Configurations for project fields.

Types possibles pourProjectV2FieldConfiguration

ProjectV2ItemContent

Types that can be inside Project Items.

Types possibles pourProjectV2ItemContent

PullRequestTimelineItems

An item in a pull request timeline.

Types possibles pourPullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Types possibles pourPushAllowanceActor

Reactor

Types that can be assigned to reactions.

Types possibles pourReactor

ReferencedSubject

Any referencable object.

Types possibles pourReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Types possibles pourRenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Types possibles pourRequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Types possibles pourReviewDismissalAllowanceActor

RuleSource

Types which can have RepositoryRule objects.

Types possibles pourRuleSource

SearchResultItem

The results of a search.

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Types possibles pourStatusCheckRollupContext

UserListItems

Types that can be added to a user list.

Types possibles pourUserListItems

VerifiableDomainOwner

Types that can own a verifiable domain.

Types possibles pourVerifiableDomainOwner