Skip to content

Commit 8566940

Browse files
garnoleebyron
authored andcommitted
Fix field names in Learn Schema example of Character (graphql#195)
1 parent aaaa479 commit 8566940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/learn/Learn-Schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ type Droid implements Character {
259259
}
260260
```
261261

262-
You can see that both of these types have all of the fields from the `Character` interface, but also bring in extra fields, `homePlanet` and `primaryFunction`, that are specific to that particular type of character.
262+
You can see that both of these types have all of the fields from the `Character` interface, but also bring in extra fields, `totalCredits`, `starships` and `primaryFunction`, that are specific to that particular type of character.
263263

264264
Interfaces are useful when you want to return an object or set of objects, but those might be of several different types.
265265

0 commit comments

Comments
 (0)