Skip to main content

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

Types that can be assigned to issues.

Types possibles pour Assignee

Types that can initiate an audit log event.

Types possibles pour AuditEntryActor

Types which can be actors for BranchActorAllowance objects.

Types possibles pour BranchActorAllowanceActor

Types that can represent a repository ruleset bypass actor.

Types possibles pour BypassActor

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

Types possibles pour Claimable

The object which triggered a ClosedEvent.

Types possibles pour Closer

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

Types possibles pour CreatedIssueOrRestrictedContribution

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

Types possibles pour CreatedPullRequestOrRestrictedContribution

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

Types possibles pour CreatedRepositoryOrRestrictedContribution

Users and teams.

Types possibles pour DeploymentReviewer

An object that is a member of an enterprise.

Types possibles pour EnterpriseMember

Types that can own an IP allow list.

Types possibles pour IpAllowListOwner

Used for return value of Repository.issueOrPullRequest.

Types possibles pour IssueOrPullRequest

Types that can be inside a Milestone.

Types possibles pour MilestoneItem

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

An audit entry in an organization audit log.

Types possibles pour OrganizationAuditEntry

Used for argument of CreateProjectV2 mutation.

Types possibles pour OrganizationOrUser

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

Types possibles pour PermissionGranter

Types that can be pinned to a profile page.

Types possibles pour PinnableItem

Types that can be inside Project Cards.

Types possibles pour ProjectCardItem

Possible collaborators for a project.

Types possibles pour ProjectV2Actor

Configurations for project fields.

Types possibles pour ProjectV2FieldConfiguration

Types that can be inside Project Items.

Types possibles pour ProjectV2ItemContent

An item in a pull request timeline.

Types possibles pour PullRequestTimelineItems

Types that can be an actor.

Types possibles pour PushAllowanceActor

Types that can be assigned to reactions.

Types possibles pour Reactor

Any referencable object.

Types possibles pour ReferencedSubject

An object which has a renamable title.

Types possibles pour RenamedTitleSubject

Types that can be requested reviewers.

Types possibles pour RequestedReviewer

Types that can be an actor.

Types possibles pour ReviewDismissalAllowanceActor

Types which can have RepositoryRule objects.

Types possibles pour RuleSource

The results of a search.

Types possibles pour SearchResultItem

Types that can be inside a StatusCheckRollup context.

Types possibles pour StatusCheckRollupContext

Types that can be added to a user list.

Types possibles pour UserListItems

Types that can own a verifiable domain.

Types possibles pour VerifiableDomainOwner