summary refs log tree commit diff
path: root/src/test/mongo_test.ts
blob: c4b3ec37e789771f2d60f71ec829fc9cdfdbca64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();