fetch-multipart-graphql

JSON →
library 2.3.1 ·javascript
verified Jun 7, 2026
api

Cross-browser function to fetch and parse streaming multipart GraphQL responses, enabling support for the @defer directive in GraphQL clients like Apollo Server and Relay Modern. Current stable version is 2.3.1, released with moderate cadence. Key differentiators: supports both fetch and XMLHttpRequest, handles streaming multipart responses out-of-the-box, and works with Relay's Observable pattern. Requires polyfill for TextEncoder/TextDecoder in older browsers.