Jayden Seric

Results 226 comments of Jayden Seric

If it provides some insight, in the end for [`graphql-api-koa`](https://github.com/jaydenseric/graphql-api-koa) it worked well having just 2 middlewares; one for errors ([`errorHandler`](https://github.com/jaydenseric/graphql-api-koa#function-errorhandler)) and one for executing ([`execute`](https://github.com/jaydenseric/graphql-api-koa#function-execute)): ```js import Koa from...

Don't merge yet, I'm noticing that `dist/index.mjs` has a few erroneous `module.exports` in it for some reason.

As a breaking change, I updated the exports to be only named for ESM/CJS cross compatibility and consistency. For a native ESM environment: ```js import { graphqlHTTP, getGraphQLParams } from...

@IvanGoncharov > Can we make it backward compatible using babel-plugin-add-module-exports? For starters, [that plugin does not, and likely will not support babel v7](https://github.com/59naga/babel-plugin-add-module-exports/issues/51). The best way forward is to tweak...

Things were moving too slow so I published [graphql-api-koa](https://github.com/jaydenseric/graphql-api-koa), and have been enjoying writing resolvers in native ESM for a month now without issue.

Ideally two things should happen: 1. Add native ESM support to this package via `.mjs`, similar to `graphql`: https://github.com/graphql/graphql-js/pull/1244. This would fix this bug when the consumer uses `express-graphql` directly...

A friend looked into subscriptions a while ago: https://github.com/pur3miish/graphql-react-subscription I haven't needed subscriptions for any of my my own projects, so have not given the problem space due thought yet.

An update… On a few occasions I dove really deep into GraphQL WebSocket protocols, and was dissatisfied with Apollo's protocol (which has actually changed a few times) but it seems...

A React hook for GraphQL subscriptions is now quite feasible: 1. [`graphql-ws`](https://github.com/enisdenjo/graphql-ws) is well maintained, and implements [a protocol](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md) on track to be standardized by the GraphQL Foundation. 2. The...

Interesting; at the moment that feature is not supported. To get it working, we would need to either need to build in support for it (config option, hashing the query,...