Set Custom Types for docs items in mongoose-paginate-v2 wit TypeScript

Set Custom Types for docs items in mongoose-paginate-v2

What is mongoose-paginate-v2? mongoose-paginate-v2 is a pagination library for mongoose. With mongoose-paginate-v2, you can fetch a list of documents from a MongoDB collection and get a paginated response. Paginated responses are useful for cases where UI clients needs to query and display only a section of data at a time. UI Table Pagination - ui.shadcn.com The mongoose-paginate-v2 documentation provides a code snippet for how to use the library with TypeScript. 1...

September 19, 2023 · 3 min · Orim Dominic Adah

How to Handle MongoDB Transactions on your Local Server in Node.js

Until version 4, MongoDB lacked the ability to carry out ACID transactions. ACID transactions enable database operations (creating, reading, updating and deleting data) to be more resilient and dependable. This is necessary, especially in finance-related applications that have to do with transferring money among users. This guide is for you if you use Node.js and MongoDB. It is expected that you have installed MongoDB already and you have a running MongoDB server on your local computer....

February 16, 2023 · 4 min · Orim Dominic Adah