Graphql Clients with Axios-like interceptors

This page summarizes the projects mentioned and recommended in the original post on /r/graphql

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.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • axios

    Promise based HTTP client for the browser and node.js

  • I'm working with Graphql but I'm having trouble finding the equivalent of Axios interceptors for Graphql clients. I've checked Apollo, Relay and Graphql Request clients but none of them seem to be able to intercept responses/requests.

    You can easily achieve that with Apollo using links. There is even an npm package that already does that. https://github.com/newsiberian/apollo-link-token-refresh

  • 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
  • react-relay-network-modern

    Relay Modern Network Layer with middlewares — cache, auth, retry, batch, logger, SSR

  • Relay: Since relay uses a custom fetchGraphQL function, you have access to all the header information. But I suspect what you're really looking for is something like the authMiddleware in react-relay-network-modern which does an accessToken refresh and query refetch when the token is expired.

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

  • Axios Adds Fetch Adapter

    1 project | news.ycombinator.com | 8 May 2024
  • How to Build Progressive Web Apps in 2024? A Step-byStep Guide

    2 projects | dev.to | 3 May 2024
  • React Magic: How to Create a Custom Hook for Seamless Data Retrieval.

    1 project | dev.to | 30 Apr 2024
  • Update Bunny Edge Storage files with NodeJS

    2 projects | dev.to | 30 Apr 2024
  • API Handling: Utilizing the Facade Pattern with Axios in Frontend Development

    2 projects | dev.to | 25 Apr 2024