I have a MongoDB database with a settings
collection that I need to delete a field from by key. In the docs I see that deleteOne
accepts an Object [key, value].
How can I delete it with just the key since the value is unknown?
// key - req.params.key
db.collection('settings').deleteOne(???);