Test GraphQL API's easily

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • fastify

    Fast and low overhead web framework, for Node.js

  • I'll give you a brief introduction to today's example. I made an Api using Fastify and mercurius (formerly fastify-gql), this because it already has support for async middleware support and is quite simple to configure. In addition, axios is used to make http requests to the jsonplaceholder Api to get a user and posts from that same user.

  • mercurius

    Implement GraphQL servers and gateways with Fastify

  • I'll give you a brief introduction to today's example. I made an Api using Fastify and mercurius (formerly fastify-gql), this because it already has support for async middleware support and is quite simple to configure. In addition, axios is used to make http requests to the jsonplaceholder Api to get a user and posts from that same user.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • axios

    Promise based HTTP client for the browser and node.js

  • I'll give you a brief introduction to today's example. I made an Api using Fastify and mercurius (formerly fastify-gql), this because it already has support for async middleware support and is quite simple to configure. In addition, axios is used to make http requests to the jsonplaceholder Api to get a user and posts from that same user.

  • uvu

    uvu is an extremely fast and lightweight test runner for Node.js and the browser

  • Today we are going to use uvu, which is a super fast and extremely light test runner, but more importantly, it already supports asynchronous testing out of the box without any configuration.

  • graphql-request

    Minimal GraphQL client

  • And to do the GraphQL tests I'm going to use a super easy-to-use client called graphql-request, which also supports asynchronous requests.

  • kuver

    GraphQL Api Testing with uvu 👶

  • The github repository is here.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts