Download src/modules/database/database.provider.ts from bardd/node-pt: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/bardd/node-pt/resolve/main/src/modules/database/database.provider.ts
- Command line
-
hf download hf://spaces/bardd/node-pt/src/modules/database/database.provider.ts
-
curl -L -o database.provider.ts https://huggingface.co/spaces/bardd/node-pt/resolve/main/src/modules/database/database.provider.ts
376 Bytes
| import * as mongoose from 'mongoose'; | |
| import { env } from 'process'; | |
| export const databaseProviders = [ | |
| { | |
| provide: 'DATABASE_CONNECTION', | |
| useFactory: (): Promise<typeof mongoose> => | |
| mongoose.connect( | |
| 'mongodb+srv://rehmanwahlah248:l73aCc2uUPWuiaod@cluster0.16fl8yq.mongodb.net/property-listing?retryWrites=true&w=majority', | |
| ), | |
| }, | |
| ]; |