![]() Looking at the results in the Response window at the bottom, it looks like we only got a single album back: “ Paul’s Boutique” (good album □ ).Īnd that’s all there is to it. enum Genre Īnd when you’re ready, click the blue Send button again. In the discography schema, you’ll find definitions for albums, tracks, and artists - and two queries that return either all albums, or a specific one. Let’s review our schema before we get into it. If you see the following, your server is up and running: □ Server ready at Review the schema Npm install & npm run start:example discography To pull the code from GitHub and start the server, paste the following command into a terminal on your machine. ![]() We’re going to use the discography example from apollo-server-starter. You understand the basics of GraphQL (you can read “ What is GraphQL? GraphQL Introduction” to get up to speed).You have the Postman Agent installed or a Postman account.You have NPM and Node.js (8+) installed.In this short post, we’ll walk through how to manually test your GraphQL API using Postman. ![]() It works as a great tool for testing any HTTP endpoint – that means GraphQL too. If you’re not using Apollo Explorer to test your GraphQL API (our free GraphQL IDE in Apollo Studio), another option is Postman. ![]() When building out APIs on the web, we’ll often find ourselves in the situation where we need to quickly verify that the route or API call we just created works the way we intend it to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |