monorepo/services/util/mongoose.options.ts

9 lines
189 B
TypeScript
Raw Normal View History

2021-04-01 17:58:41 +00:00
import { ConnectOptions } from 'mongoose'
export const mongooseOptions: ConnectOptions = {
useUnifiedTopology: true,
useCreateIndex: true,
useNewUrlParser: true,
autoIndex: true
}