1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/mongo_test.ts b/src/test/mongo_test.ts
new file mode 100644
index 00000000..c4b3ec37
--- /dev/null
+++ b/src/test/mongo_test.ts
@@ -0,0 +1,14 @@
+import mongoose from "mongoose";
+
+async function main() {
+ const mongoConnection = await mongoose.createConnection(
+ "mongodb://localhost:27017/lambert?readPreference=secondaryPreferred",
+ {
+ useNewUrlParser: true,
+ useUnifiedTopology: false,
+ }
+ );
+ console.log("connected");
+}
+
+main();
|