Download src/modules/database/database.provider.ts from bardd/node-pt: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/bardd/node-pt/resolve/ca4fcfa020aaa53fd098cac7defe8d6c3f7b0afb/src/modules/database/database.provider.ts
- Command line
-
hf download hf://spaces/bardd/node-pt@ca4fcfa020aaa53fd098cac7defe8d6c3f7b0afb/src/modules/database/database.provider.ts
-
curl -L -o database.provider.ts https://huggingface.co/spaces/bardd/node-pt/resolve/ca4fcfa020aaa53fd098cac7defe8d6c3f7b0afb/src/modules/database/database.provider.ts
365 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', | |
| ), | |
| }, | |
| ]; |