Closed Tarrask closed 2 years ago
This is a fix for issue https://github.com/pinojs/pino-mongodb/issues/76. In mongodb 4, the result object returned by insertOne does not contain the ops array anymore.
This fix use the original log object of the insert function to output it on the console when the -o option is defined
This is a fix for issue https://github.com/pinojs/pino-mongodb/issues/76. In mongodb 4, the result object returned by insertOne does not contain the ops array anymore.
This fix use the original log object of the insert function to output it on the console when the -o option is defined