🚀 With StepZen you can create a GraphQL API for any data source, in minutes! 🚀

Use GraphQL APIs

Let's see how to use a GraphQL API in this Qodex collection, for example the [DEV.to collection]

In this collection you can query data from DEV.to using a GraphQL API, where the query you send in the POST body determines the data that will be returned:

query DevToQueries {
  devto_getArticles(username: "stepzen") {
    cover_image
    title
    created_at
  }
}

This query will return a list of articles posted on DEV.to by the StepZen account. For every post the fields cover_image, title and created_at will be returned.

To retrieve other fields, you can just add them to the query definition. Qodex will autocomplete when you start typing. If you want to learn more about using GraphQL APIs have a look at this blog post.

Build your own GraphQL APIs

You can use StepZen to build your own GraphQL API using the CLI. This GraphQL is deployed to the StepZen cloud, from where you can connect it to any application.

  1. Install the StepZen CLI from npm:
npm install -g stepzen

2. Sign up for a StepZen account using

3. Import any data source using the StepZen CLI, for example to import an endpoint from the DEV.to REST API:

stepzen import curl 'https://dev.to/api/api/articles?per_page=10&page=1' --query-name getArticles --query-type Article

This will import the REST API endpoint, and generates a GraphQL schema on your local machine.

To import other data sources such as SQL and NoSQL databases, GraphQL APIs and more. Go to the documentation to find out more.

4. Deploy the GraphQL API to the cloud:

stepzen start

Great! You can now query your new GraphQL API using the Explorer in the StepZen dashboard, or by sending a request to the endpoint printed in your terminal

Where to go from here?

Visit the StepZen documentation to learn more about building GraphQL APIs. Questions? Head over to Discord to get an answer!