Create a GraphQL Object Type and Query a List of Objects

Eve Porcello
InstructorEve Porcello

Share this video with your friends

Send Tweet

Using the GraphQL Schema Definition Language, we can define types that reflect all of the objects available on our API. In this lesson, we will create a SkiDay type and return a list of SkiDay objects with an allDays query. We will also create an enum, which describes a restricted list of allowed values for a particular field.