Strapi, GraphQL, Mongoose

TIL 2021.07.02

Strapi

A headless CMS(Content Management System) for Nodejs to build and develop APIs, and its content super-fast and accessible in a friendly UI.

After I try Strapi for my company’s project, this will be the best when you need to get dynamic data and easy to build Database.

GraphQL & Next.js

  • HOC
Quick Startnpx create-next-app next-with-apollo

Mongoose

startSession: create Sessionsession.startTransaction // start transaction
session.commitTransaction // commit and save changes
session.endSession // end transaction
Even though you are using several models, session can be applied to everything once it is declared. Therefore, it will fail if one of the processes fail.