This message was deleted.
# orm-help
s
This message was deleted.
n
Hey Peter 👋 It seems you are looking for Expanding Variables, Variables stored in
.env
files can be expanded using the format specified by dotenv-expand Her’s how your env file can look like
Copy code
MONGO_APP_USER="test"
MONGO_APP_PASSWORD="password"
MONGO_HOST_CONNECTION="connection"
MONGO_OPTIONS="options"

DATABASE_URL="mongodb://${MONGO_APP_USER}:${MONGO_APP_PASSWORD}@${MONGO_HOST_CONNECTION}/tools?${MONGO_OPTIONS}"
and have your schema like
Copy code
// schema.prisma
datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}