Running a simple query
Learn how to run a simple query using Hoppscotch.
Connecting to a GraphQL server
Switch to the GraphQL platform on Hoppscotch and connect to the below GraphQL server.
Once a successful connection has been made, you can view both documentation and the schema using Hoppscotch.
It is important to explore the schema to understand the different queries, mutations, types, and subscriptions that are offered by the endpoint.
Running the query
Furthermore, you can run the query to fetch the data from the GraphQL server.
Naruto GraphQL endpoint
Let’s explore the Naruto GraphQL endpoint.
-
Open Hoppscotch and connect to the endpoint below:
-
Explore the schema and documentation to understand more about the endpoint.
-
Write a query to get the character details whose name contains
hatake
. -
Click on the run button to execute the query.
-
The query will return the following response.
Was this page helpful?