forked from obetame/learn-graphql
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
mafeifan edited this page Feb 7, 2018
·
2 revisions
Scalars are primitive values: Int, Float, String, Boolean, or ID. When calling the GraphQL API, you must specify nested subfields until you return only scalars.
Interfaces serve as parent objects from which other objects can inherit.
For example, Starrable is an interface because both Repository and Gist objects can be starred. An interface has its own list of named fields that are shared by implementing objects.