hasura / hasura/graphql-engine

Stream a HTTP request via chunked encoding via Hasura action

Open
#9,508 1 comment 11 reactions 0 assignees View on GitHub
k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

Requesting the capability to stream a HTTP request via chunked encoding via a Hasura action.

### Describe the solution you'd like

If a web client calls an async mutation a receives a subscription, it would be beneficial to allow the called action endpoint to stream back results as they come in. Hasura could either build the request as the stream comes in, or feed it to the user via subscription.

Specifics:
Generating a large CSV via an async mutation and writing it out to a downloaded file using a service worker as it comes in to minimize the amount of content in memory.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.