From the course: Build a Lightweight Full-Stack Headless CMS Using Next.js, Contentful, and GraphQL
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Challenge: Request content entry from the Contentful API - GraphQL Tutorial
From the course: Build a Lightweight Full-Stack Headless CMS Using Next.js, Contentful, and GraphQL
Challenge: Request content entry from the Contentful API
(upbeat music) - [Instructor] Now that you've familiarized yourself with this file and how the GraphQL queries are being written and used within these functions, we are going to have to start thinking about different content types. So this is specifically for posts. What if you're wanting to work with a different content type that you've created, such as my menu item that I created earlier, or you want to have just any kind of content type that isn't default, right, or isn't actually a post. How are you going to work with that? So I'm going to go ahead and show you a nifty tool that I like to use when it comes to backend development, right? So typically if you're working with GraphQL, you're going to want a IDE. So something that you can visually see. You don't want to just be guessing the queries that you are writing. So you're going to go ahead and go to Apps, Marketplace, and you can go ahead and search for GraphQL Playground. There it is. And let's go ahead and configure, right…