Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to GraphQL!
You have completed Introduction to GraphQL!
Preview
In this video, we will go over how to fetch data in the shape we want it, including only the pieces that we care about.
Course Repo: Use this GitHub Repo to follow along with this course
New Terms:
- Scalar field - A field with a simple data type, such as a String, Int, or Boolean
- Object type field - A field which returns another object, which can be broken down into further scalar or object type fields
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
removing fields to see how that
affects our query results.
0:00
Once again,
we'll be working with movie objects.
0:03
You can find the link to
the starting point for
0:06
this lesson in the Teacher's Notes
under Stage 2- Video 2.
0:08
As we saw in the previous stage,
each movie has five fields,
0:13
id, title, tagline, revenue and studio.
0:17
With the exception of studio, each of
these is what's known as a scalar field.
0:23
This means they are simple
fields like strings and
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up