graffle-js / graffle

Simple GraphQL Client for JavaScript. Minimal. Extensible. Type Safe. Runs everywhere.
http://graffle.js.org/
MIT License
5.84k stars 308 forks source link

Add support for request batches #1017

Open jasonkuhrt opened 2 months ago

jasonkuhrt commented 2 months ago

Perceived Problem

Ideas / Proposed Solution(s)

There are various features about this from various tools. I cannot find an actual spec though.

Ah, that last one does have a spec. That's great news as I don't have an interest in reading sporadic incomplete docs and blog posts to implement a feature in Graffle.

So, read this and report back next steps after understanding it: https://github.com/graphql/graphql-over-http/blob/main/rfcs/Batching.md

Something to keep in mind: Let's see if we can use the extension system to implement this feature. If not, why, and maybe we can enhance the extension system motivated by features needed to achieve this.

jasonkuhrt commented 3 weeks ago

This should be realized as an extension.