Closed maicss closed 7 months ago
Should I must use defineMongooseConnection to create a new connection ?
@maicss you can use import { connection } from 'mongoose'
to get the default connection, if you want to define a different connection you can use defineMongooseConnection
I need write some log to my mongodb, so how to get the connect cursor and make a writeable stream for my logger service? Thanks advance!