When building a GraphQL server, one of the first decisions you must make is which GraphQL implementation to use. There are three popular options. GraphQL.js vs. TypeGraphQL vs. GraphQL Nexus
When building a GraphQL server, one of the first decisions you must make is which GraphQL implementation to use. There are three popular options.
enumType. Unlike the reference implementation, Nexus uses some black magic TypeScript trickery so that your schemas are more strongly typed. Unfortunately, as we’ll see below, this doesn’t always work so well.
In order to do a proper comparison of these three implementations, I’ll show how you can build the Star Wars schema using each of them and talk about their pros and cons. At the end, I’ll give my opinion on which one I prefer using.
The code shown in this article can be found here.
How to make the ultimate authentication boilerplate for your application. We will be using graphql-nexus and prisma as our ORM.