• 2 days ago
In my new small project I need to delete data from database using the unique identifier. From frontend my identifier is sent as a string. But in backend I need a MongoDB ObjectID. The conversion is easy, instead a string id, I will use {_id: id} and works like a charm.

Recommended