- Node.js
- MongoDB
- Fastify
- Swagger
- GraphQL
Part 2: Implementation of GraphQL
This wasn't my first GraphQL tutorial, but I was curious to see how a REST API could be converted to GraphQL. I was surprised to find that this project decided to end with both the REST API and the GraphQL server implemented instead of converting the REST API fully. This lined up with the research I've been doing about published GraphQL APIs. Having a published REST API makes a lot more sense with status codes and the learning curve than a GraphQL one. However, a frontend application can easily use GraphQL to access the exact data it needs. Additionally, the GraphQLList
and using GraphQLObjectType
was new to me because I had previously used the buildSchema
method.