summary refs log tree commit diff
path: root/src/test/mongo_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/mongo_test.ts')
-rw-r--r--src/test/mongo_test.ts14
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();