Skip to content

Commit 32c0588

Browse files
authored
Fix typo for GraphQL unions in Book (#1313)
1 parent 1b1fc61 commit 32c0588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/types/unions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Unions
55
66
From the server's point of view, [GraphQL unions][0] are somewhat similar to [interfaces][12]: the main difference is that they don't contain fields on their own, and so, we only need to represent a value, _dispatchable_ into concrete [objects][10].
77

8-
Obviously, the most straightforward approach to express [GraphQL unions][0] in [Rust] is to use [enums][22]. In [Juniper] this may be done by using [`#[derive(GraphQLInterface)]`][2] attribute on them:
8+
Obviously, the most straightforward approach to express [GraphQL unions][0] in [Rust] is to use [enums][22]. In [Juniper] this may be done by using [`#[derive(GraphQLUnion)]`][2] attribute on them:
99
```rust
1010
# extern crate derive_more;
1111
# extern crate juniper;

0 commit comments

Comments
 (0)