:zap: And here is an example of Prisma working wit...
# orm-help
d
⚔ And here is an example of Prisma working with Apollo Server 2.0. It is a straight fork of the graphql-server-example with Apollo Server replacing Yoga. https://github.com/develomark/graphql-server-example
šŸ‘ 6
Apollo Server 2.0 has just been released and comes with Automatic Persisted Queries, CDN integration and more control over error handling. It is very similar to Graphql-Yoga.
m
Sounds great! Are you planning on making/releasing maintained boilerplates like the the Prisma/Yoga ones? https://github.com/graphql-boilerplates
d
@Moritz I hadn't considered that to be honest. I wanted to have greater control over error handling so switched over to Apollo Server. Just thought I'd share this as an example of how to do the migration in just a couple of lines of code.
f
I also have a boilerplate with Prisma, Vue, Auth0 and some other stuff (https://github.com/frandiox/vue-graphql-enterprise-boilerplate/). I was using
graphql-yoga
but I’m now thinking in replacing it with
apollo-server@2.0.0
šŸ¤” @develomark what is your experience with it? Does it make a big difference?
d
Yoga is a wrapper around Apollo 1. Apollo 2.0 comes with a bunch of new things, but if you are not using those you will see little difference.
s
thanks for the repo @develomark! Switched my project too. I use middleware and that doesn't work with Apollo Server out of the box, though implementing it is easy. See my diff if you're interested; https://github.com/Volst/foed/commit/90272de00ccbc774c5831ba97bbc56b3e8deb180
d
Nice. Looks like Middlewear is nice and simple also. I hadn't seen
graphql-authentication
before - this looks really nice. I'm going to consider using it myself!
šŸ‘ 1
b
I just did upgraded from yoga and it was amazingly easy.
šŸ‘ŒšŸ» 1