Simple GraphQL API with Express and MongoDB

margaiwangara profile image Margai Wangara ・1 min read

After learning GraphQL and building my first ever GraphQL API (check out https://twentyfourseven.margaiwangara.me for react app) by consuming the TMDB REST API using Express and creating an interface using React.js, I decided to challenge myself to see if I could utilize the same concepts and combine it with my knowledge of MongoDB and Express to create a database and perform a single CRUD operation. Finally, this is what I was able to achieve in a few minutes.

To run the app and try it out, check out the index file in my 'models' folder and add the MongoDB connection string.


markdown guide