Skip to content

Commit

Permalink
update unions docs, fix example query
Browse files Browse the repository at this point in the history
  • Loading branch information
m.kindritskiy committed Jul 12, 2023
1 parent 4a9bc6c commit 05d19a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/unions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Unions

.. _unions-doc:

Union types are special types used to represent a value that could be one of a number of types.
Union types are special types used to represent a value that could be one of types.

In graphql you can use union types like this:

Expand Down Expand Up @@ -75,11 +75,12 @@ Now lets look at the query:
query {
search(text: "test") {
__typename
id
... on Audio {
id
duration
}
... on Video {
id
thumbnailUrl
}
}
Expand Down

0 comments on commit 05d19a5

Please sign in to comment.