Skip to content

DanRowe/graphql-fastify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial Project with GraphQL and REST APIs with Node.js, MongoDB, Fastify and Swagger

Tools Used

  • Node.js
  • MongoDB
  • Fastify
  • Swagger
  • GraphQL

Tutorial I Followed

Part 1: Creation of REST API

Part 2: Implementation of GraphQL

Remarks

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.

About

Tutorial repository for learning GraphQL. A blazing fast REST APIs with Node.js, MongoDB, GraphQL, Fastify and Swagger.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%