Skip to content

Commit 33e3e9e

Browse files
authored
Fix fragment name (#937)
Conditional fragments aren't referenced anywhere else in the documentation, going by results from the search bar. This is introduced as an inline fragment in the "Queries and Mutations" section.
1 parent 24f7de4 commit 33e3e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/Learn-Schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ union SearchResult = Human | Droid | Starship
305305

306306
Wherever we return a `SearchResult` type in our schema, we might get a `Human`, a `Droid`, or a `Starship`. Note that members of a union type need to be concrete object types; you can't create a union type out of interfaces or other unions.
307307

308-
In this case, if you query a field that returns the `SearchResult` union type, you need to use a conditional fragment to be able to query any fields at all:
308+
In this case, if you query a field that returns the `SearchResult` union type, you need to use an inline fragment to be able to query any fields at all:
309309

310310
```graphql
311311
# { "graphiql": true}

0 commit comments

Comments
 (0)