This video is available to students only
Querying and mutating listings data with GraphQL
In this lesson, we'll look to mimic the listings retrieval and manipulation we had in our Express RESTful API but with GraphQL instead.
📝 This lesson's quiz can be found - here. 🗒️ Solutions for this lesson's quiz can be found - here.
We've created a simple GraphQL Schema with which our root level query and mutation object types each have a single hello
field that returns a string message when queried. We'll now look to mimic the listings retrieval and manipulation we had in our REST API with GraphQL.
Listing Object Type#
The first thing we'll do is create a custom Listing
object type. The Listing
object type is to reference the listing type that is to be returned fro