add mongoose orm to the stack builder (#191)

This commit is contained in:
José Alberto Gómez García
2025-05-02 15:23:04 +02:00
committed by GitHub
parent 946f3eb421
commit 437cf9a45a
15 changed files with 524 additions and 273 deletions

View File

@@ -0,0 +1,6 @@
import mongoose from 'mongoose';
await mongoose.connect(process.env.DATABASE_URL || "");
const client = mongoose.connection.getClient();
export { client };