contra / graphql-helix

A highly evolved GraphQL HTTP Server 🧬
graphql-helix.vercel.app
MIT License
829 stars 49 forks source link

Can we detect/support cancelation of @stream operations? #265

Open jtwigg opened 2 years ago

jtwigg commented 2 years ago

I'm planning on streaming results using the @stream functionality, but I would like the client react app to cancel the operation, and have that propagate backwards to the resolver that's returning a result, likely via

yield ressult

Ultimately I would like the DB operation to be canceled.

Is this possible? Is there a mechanism in helix for detecting canceled requests?