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.

Возможные типы для Assignee

AuditEntryActor

Types that can initiate an audit log event.

Возможные типы для AuditEntryActor

BranchActorAllowanceActor

Types which can be actors for BranchActorAllowance objects.

Возможные типы для BranchActorAllowanceActor

Closer

The object which triggered a ClosedEvent.

Возможные типы для Closer

CreatedIssueOrRestrictedContribution

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

Возможные типы для CreatedIssueOrRestrictedContribution

CreatedPullRequestOrRestrictedContribution

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

Возможные типы для CreatedPullRequestOrRestrictedContribution

CreatedRepositoryOrRestrictedContribution

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

Возможные типы для CreatedRepositoryOrRestrictedContribution

DeploymentReviewer

Users and teams.

Возможные типы для DeploymentReviewer

EnterpriseMember

An object that is a member of an enterprise.

Возможные типы для EnterpriseMember

IpAllowListOwner

Types that can own an IP allow list.

Возможные типы для IpAllowListOwner

IssueOrPullRequest

Used for return value of Repository.issueOrPullRequest.

Возможные типы для IssueOrPullRequest

MilestoneItem

Types that can be inside a Milestone.

Возможные типы для MilestoneItem

OrgRestoreMemberAuditEntryMembership

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

OrganizationAuditEntry

An audit entry in an organization audit log.

Возможные типы для OrganizationAuditEntry

PermissionGranter

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

Возможные типы для PermissionGranter

PinnableItem

Types that can be pinned to a profile page.

Возможные типы для PinnableItem

ProjectCardItem

Types that can be inside Project Cards.

Возможные типы для ProjectCardItem

PullRequestTimelineItems

An item in a pull request timeline.

Возможные типы для PullRequestTimelineItems

PushAllowanceActor

Types that can be an actor.

Возможные типы для PushAllowanceActor

Reactor

Types that can be assigned to reactions.

Возможные типы для Reactor

ReferencedSubject

Any referencable object.

Возможные типы для ReferencedSubject

RenamedTitleSubject

An object which has a renamable title.

Возможные типы для RenamedTitleSubject

RequestedReviewer

Types that can be requested reviewers.

Возможные типы для RequestedReviewer

ReviewDismissalAllowanceActor

Types that can be an actor.

Возможные типы для ReviewDismissalAllowanceActor

SearchResultItem

The results of a search.

Возможные типы для SearchResultItem

StatusCheckRollupContext

Types that can be inside a StatusCheckRollup context.

Возможные типы для StatusCheckRollupContext

VerifiableDomainOwner

Types that can own a verifiable domain.

Возможные типы для VerifiableDomainOwner