Skip to main content
Мы публикуем частые обновления нашей документации, и перевод этой страницы может все еще выполняться. Актуальные сведения см. в документации на английском языке.

Объединения

About unions

A union is a type of object representing many objects.

For example, a field marked as an ProjectCardItem could be an Issue or a PullRequest because each of those objects can be inside a project card. Using a union instead of an object gives you flexibility.

For more information, see "Introduction to GraphQL."

Assignee

Types that can be assigned to issues.

Возможные типы

AuditEntryActor

Types that can initiate an audit log event.

Возможные типы

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Возможные типы

Closer

The object which triggered a ClosedEvent.

Возможные типы

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.

Возможные типы

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.

Возможные типы

MilestoneItem

Types that can be inside a Milestone.

Возможные типы

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Возможные типы

PermissionGranter

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

Возможные типы

PinnableItem

Types that can be pinned to a profile page.

Возможные типы

ProjectCardItem

Types that can be inside Project Cards.

Возможные типы

PullRequestTimelineItems

An item in a pull request timeline.

Возможные типы

PushAllowanceActor

Types that can be an actor.

Возможные типы

Reactor

Types that can be assigned to reactions.

Возможные типы

ReferencedSubject

Any referencable object.

Возможные типы

RenamedTitleSubject

An object which has a renamable title.

Возможные типы

RequestedReviewer

Types that can be requested reviewers.

Возможные типы

ReviewDismissalAllowanceActor

Types that can be an actor.

Возможные типы

SearchResultItem

The results of a search.

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Возможные типы

VerifiableDomainOwner

Types that can own a verifiable domain.

Возможные типы