-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ const mongoose = require("mongoose"); | |
const Question = require("./Question"); // Adjust the path as necessary to your Question model | ||
const { data } = require("./data"); // Adjust the path to where your data.js file is located | ||
|
||
// Store my MongoDB connection string in the MONGO_URI environment variable | ||
// Store my MongoDB connection string in the MONGO_URI environment variable to connect to the database | ||
process.env.MONGO_URI = "mongodb+srv://jokwuoma:[email protected]/?retryWrites=true&w=majority&appName=Cluster0"; | ||
const mongoURI = process.env.MONGO_URI; | ||
// const mongoURI = 'mongodb+srv://${username}:${password}@cluster0.3x0s7hh.mongodb.net/?appName=mongosh+2.1.5'; | ||
|