Closed xiaoxintang closed 1 year ago
defineMongooseConnection is to create a new connect. my problem is how to use default connect? can you write an example to readme?
defineMongooseConnection
Yes! thank you for bringing that up. you can always use the default conenction from import { connection } from 'mongoose'
import { connection } from 'mongoose'
PR welcome if you want to add some description about this into docs.
defineMongooseConnection
is to create a new connect. my problem is how to use default connect? can you write an example to readme?