Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
21 lines
718 B
Markdown
21 lines
718 B
Markdown
---
|
|
title: Unions
|
|
redirect_from:
|
|
- /v4/union
|
|
versions:
|
|
free-pro-team: '*'
|
|
enterprise-server: '*'
|
|
---
|
|
|
|
### 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`](/v4/union/projectcarditem/) could be an [`Issue`](/v4/object/issue/) or a [`PullRequest`](/v4/object/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](/v4/guides/intro-to-graphql)."
|
|
|
|
{% for item in graphql.schemaForCurrentVersion.unions %}
|
|
{% include graphql-union %}
|
|
{% endfor %}
|