Connecting to a GraphQL server
Switch to the GraphQL platform on Auk and connect to a public GraphQL server, for example:Running the query
You can execute queries to retrieve data from the GraphQL server by following these steps:- Open the Documentation panel to explore the available queries for the endpoint.
- Click on
queryunder Root Types to view the listed query fields. - Click the ”+” button next to a query field to add it to the Query editor with a structured template.
- Expand the query by clicking on it, then use the ”+” button to add specific fields, arguments, or filters.
- Customize the query as needed by modifying fields, adding arguments, or setting variables directly in the Query editor.
Fetching Countries Data
Let’s explore a sample query using the Countries GraphQL API.-
Open Auk, switch to the GraphQL client and connect to the endpoint:
- Explore the schema and documentation to understand more about the endpoint.
-
Select the
countriesquery, cherry-pick the fields, and add a filter to return results where thenamefield is equal to “Germany”. - Click on the run button to execute the query.
-
The query will return the following response.