The Promiscuity of PUT

From Single-Document Updates to Multiple-Document Mayhem When creating or supporting HTTP APIs for database operations, the technique is to connect HTTP methods to database operations. The widely accepted mapping is as follows: GET: Find POST : Insert/Create PUT: Update DELETE: Delete/Remove (Unless you’ve adopted GraphQL, in which case, what in Middle-earth?!) In general, everyone agrees on how POST, GET, and DELETE operations are supposed to behave. There isn’t much room for ambiguity there....

July 9, 2023 · 6 min

Mongo Express Middleware

I am super excited to share my latest open-source project with all of you — Mongo Express Middleware library! 💻 It all started with a fun weekend project where I was building APIs for a MongoDB database. I usually use Mongoose and mongoose-express-middleware, but I wanted to try something different and work with MongoDB directly this time. That’s when I realized I needed a library to handle the API layer, so I had to make a choice — find one or build one myself....

July 9, 2023 · 2 min