Storing sensitive fields like email addresses, salaries, tokens, or PII in MongoDB comes with an obvious risk if the database is compromised, plain-text values are exposed immediately. This article shows how to solve this with a simple Mongoose plugin.
MongoDB
Moving MongoDB from local installation to Docker – Fedora migration guide
Complete guide for moving an existing local MongoDB installation to newer versions of Fedora using Docker. Also useful if you are looking for getting a MongoDB container up & running on Linux with locally hosted data.
Query min/max values with additional non-grouped fields in MongoDB
Practical example demonstrating how to query for min/max values of grouped documents in MongoDB including additional non-grouped field values using $push, $map and $filter aggregation operators.
MongoDB: add/update fields referencing other existing fields using aggregation pipelines
Short explanation on how to add or update fields in documents referencing the values of other already existing fields by leveraging the aggregation pipeline framework.