1
0
mirror of synced 2026-01-07 09:01:31 -05:00
Files
docs/content/graphql/reference/unions.md
Rachael Sewell 82306c2664 remove GHES 3.7 markup and static files (#48568)
Co-authored-by: Vanessa <vgrl@github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2024-01-11 19:29:02 +00:00

26 lines
850 B
Markdown

---
title: Unions
intro: A union is a type of object representing many objects.
redirect_from:
- /v4/union
- /v4/reference/union
versions:
fpt: '*'
ghec: '*'
ghes: '*'
ghae: '*'
topics:
- API
autogenerated: graphql
---
## About unions
A [union](https://graphql.github.io/graphql-spec/June2018/#sec-Unions) is a type of object representing many objects.
For example, a field marked as an [`ProjectCardItem`](/graphql/reference/unions#projectcarditem) could be an [`Issue`](/graphql/reference/objects#issue) or a [`PullRequest`](/graphql/reference/objects#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](/graphql/guides/introduction-to-graphql)."
<!-- Content after this section is automatically generated -->