← 返回首页
docs/content/graphql/reference/unions.md at main · github/docs · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
24 lines (19 loc) · 848 Bytes
 main
Top

File metadata and controls

  • Preview
  • Code
  • Blame
24 lines (19 loc) · 848 Bytes
title intro redirect_from versions autogenerated category
Unions
A union is a type of object representing many objects.
/v4/union
/v4/reference/union
fpt ghec ghes
*
*
*
graphql
Explore the schema reference

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

Footer

© 2026 GitHub, Inc.