Programming
Create a NextJS Mongoose decorator
Decorator is a neat design pattern which lets you extend the functionality without modifying it. It’s usually also a higher order function = function that takes another function as an argument. I need a way connect to Mongodb In my NextJS project I use mongodb as a persistence layer, and Read more…