Skip to content

Commit ca21453

Browse files
AndreiRaileanSashko Stubailo
authored and
Sashko Stubailo
committed
fix typo in Inline Fragments section (graphql#152)
1 parent cc98a9a commit ca21453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/learn/Learn-Queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ query HeroForEpisode($ep: Episode!) {
254254

255255
In this query, the `hero` field returns the type `Character`, which might be either a `Human` or a `Droid` depending on the `episode` argument. In the direct selection, you can only ask for fields that exist on the `Character` interface, such as `name`.
256256

257-
To ask for a field on the concrete type, you need to use an _inline fragment_ with a type condition. Because the first fragment is labeled as `... on Droid`, the `primaryFunction` field will only be executed if the `Character` returned from `hero` is of the `Droid` type. Similarly for the `homePlanet` field for the `Human` type.
257+
To ask for a field on the concrete type, you need to use an _inline fragment_ with a type condition. Because the first fragment is labeled as `... on Droid`, the `primaryFunction` field will only be executed if the `Character` returned from `hero` is of the `Droid` type. Similarly for the `height` field for the `Human` type.
258258

259259
Named fragments can also be used in the same way, since a named fragment always has a type attached.
260260

0 commit comments

Comments
 (0)