feat: experimental generate resource
This commit is contained in:
8
src/runtime/composables/useMongoose.ts
Normal file
8
src/runtime/composables/useMongoose.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import type { mongo } from 'mongoose'
|
||||
import { connection } from 'mongoose'
|
||||
|
||||
export function useMongoose(): { db: mongo.Db } {
|
||||
return {
|
||||
db: connection?.db,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user