-
-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nest.js server support in grafserv? #2254
Comments
Hello! Ideally someone would build a Nest.js optimized server adaptor for Grafserv, like these: https://github.com/graphile/crystal/tree/main/grafast/grafserv/src/servers But given you had it working in V4 it's likely you can hack something together using the node adaptor; see https://postgraphile.org/postgraphile/next/usage-library and https://grafast.org/grafserv/servers/node But rather than doing
Doing so will mean that certain plugin middlewares won't be called, so be aware of that. If you want to submit a Nest.js adaptor I'd be happy to pair program with you for a couple of hours to help develop it if you want; the session would be public and recorded to help future adaptors be written. If you're going alone or taking the hack approach, use TypeScript to guide you and/or read the source starting here:
|
Thanks for the answer @benjie 🙏 For context we wanted to do the migration, because we were getting this error recently in our logs
We tried to resolve the graphql dependency to 15.9.0, but still getting the same issue 🥲
|
Try also adding an explicit dependency on [email protected], and consider downgrading msw so it uses [email protected] too. |
Summary
Hi, we are using Nestjs, and we would like to migrate from v4 to v5, but we were not able to find info about
postgraphileMiddleware.graphqlRouteHandler
is it still supported or what is the new way to achieve the following?Additional context
Here are our
postgraphile.middleware.ts
configHere is our
postgraphile.controller.ts
controllerThe text was updated successfully, but these errors were encountered: