sigh I was about to update a project with the nexu...
# graphql-nexus
k
sigh I was about to update a project with the nexus framework and I see that it's abandoned already 🤦 What's the recommended alternative to use with nexus schema? I'm assuming it's graphql-yoga
r
nexus schema plays well with Apollo server. That's my go-to.
đź’Ż 1
👌 1
k
back full circle eh? apollo server, yoga, yoga2, nexus, apollo server
apollo-server
doesn't support hot reloading, TS, es module imports etc. so it's not really ideal. Any boilerplate suggestions?
r
There’s an example that I have created with apollo-server2 https://github.com/ryands17/nexus-auth This one is with TS.
m
Nexus/schema is very simple to use. It fits well with apollo-server. graphql-yoga is very old and not maintained (?) you should use apollo-server directly (yoga use apollo under the hood). If you need a boilerplate here is one : https://github.com/prisma/prisma-examples/tree/latest/typescript/graphql-apollo-server
p
I use
express-graphql
as it is morelightweight and flexible and allows you to validate query complexity. You have to add things like
graphql-playground
or custom errors and formatting yourself, but that is quite straightforward.
k
Tnx for the suggestions but I'm looking for a tool, not a boilerplate. And I don't want to build one myself, that's never maintainable in the long run. Graphpack is a great abstraction on top of apollo-server, but it's not maintained.
s
Hot reload with ts-node-dev works great
r
I use
ts-node-dev
as well
a
few great tools are always well support than a “silver bullet” in the long term 🙂