summary refs log tree commit diff
path: root/src/test/mongo_test.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-01-30 19:58:15 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-01-30 19:58:15 +0100
commit76000f8fa11dde2f67efdb22a87c4644ea49f9eb (patch)
tree67664d9c616068113b8fef6704b005726be8f0a7 /src/test/mongo_test.ts
parent:sparkles: Database (diff)
downloadserver-76000f8fa11dde2f67efdb22a87c4644ea49f9eb.tar.xz
:sparkles: Util
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();