If you're going with default system installation of Mongo, you don't even need authentication, and all the necessary bits (host, port, db, collection, etc.) are already filled out in the default, so you don't need to force users to pass at least one argument.
If this is a nudge to make users choose something other than the default, I'd rather change the default options to be "good enough" so that most (at least during development phase) users don't have to specify any option.
In the
pino-mongodb.js
file, I noticed this bit:If you're going with default system installation of Mongo, you don't even need authentication, and all the necessary bits (host, port, db, collection, etc.) are already filled out in the default, so you don't need to force users to pass at least one argument.
If this is a nudge to make users choose something other than the default, I'd rather change the default options to be "good enough" so that most (at least during development phase) users don't have to specify any option.