But since both the local and remote APIs don’t yet have a schema to serve, you would get a null schema back. That’s it! Now you can hit the Send button and get the GraphQL schema that is being served by yourĭgraph cluster. Enter the following GraphQL query in the Query box.Go to the Body tab and choose the GraphQL radio box.For your local Dgraph instance, update the URL to For the remote backend you just deployed, use the URL from your dashboard with the admin endpoint. Generate a new request by clicking on the + icon.This is how you can make a request to get the Note this down-it’s where all your requests would go.Ī GraphQL request is just an HTTP request. Click on “Launch a Backend”.įill in the name and click on “Launch” your backend will be ready in no time.Īfter deployment, your dashboard will show some information, including the URL of your server. Let’s give it some colors and spin one up. The dashboard is empty for now since there’s no backend running. As you’ll soon see, just like your local Dgraph instance, you can interact with your remote GraphQL API just from your schema and perform requests using Postman.Īfter signing up, you’ll be greeted with a dashboard. Go over here to sign up if you haven’t done so and start for free. If you want to have a fully-managed, functional and production-ready GraphQL backend that’s serving a GraphQL API remotely, then Slash GraphQL is what you want. Note - You can also try the dgraph/standalone:master image to try out experimental features that haven’t been released yet. You can set up a local Dgraph cluster by using the Docker image: docker run -it -p 8080:8080 -p 9080:9080 -p 8000:8000 dgraph/standalone:latest We’ll also go through the necessary steps to achieve the same thing when working with a remote GraphQL backend deployed with Slash GraphQL. How to use Postman with your GraphQL APIįirst, let’s see how we can start Dgraph locally and get the schema for your GraphQL server using a GraphQL query. Used in this blog post are for Postman v7.2.5. We will also look at some of the advantages of doing so. In this blog post, we will look at how you can use Postman to make GraphQL Postman is one of the most popular REST API clients. All other information below still applies. Update: On April 16th 2021, Slash GraphQL was officially renamed Dgraph Cloud.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |