nexus
nexus copied to clipboard
using nexus with cloudflare workers
Hello , is it possible to use nexus with cloudflare workers ? I got a lot of errors when I tried , is there a setup to follow ?
While experimenting with this library too, turns out that this library depends relies on Node.JS APIs such as fs and path.
https://github.com/graphql-nexus/nexus/blob/main/src/node.ts
Cloudflare Workers do not support these modules, even with nodejs_compat = true. I recommend trying GQTX, which shares similarities with Nexus but is Node.JS free and compatible with Cloudflare Workers.
https://github.com/sikanhe/gqtx