From 76000f8fa11dde2f67efdb22a87c4644ea49f9eb Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:58:15 +0100 Subject: :sparkles: Util --- src/test/mongo_test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/mongo_test.ts (limited to 'src/test/mongo_test.ts') 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(); -- cgit 1.5.1