From 0305c3bb1bacbf079e07ea4881cd7adb417cfd38 Mon Sep 17 00:00:00 2001 From: Dale King Date: Tue, 31 Aug 2021 08:24:17 +1000 Subject: [PATCH] update TS docs to reflect connect Opts as mentioned here #10632 --- docs/typescript.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/typescript.md b/docs/typescript.md index 3149e67a207..e4f87283b32 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -37,10 +37,7 @@ run().catch(err => console.log(err)); async function run(): Promise { // 4. Connect to MongoDB - await connect('mongodb://localhost:27017/test', { - useNewUrlParser: true, - useUnifiedTopology: true - }); + await connect('mongodb://localhost:27017/test'); const doc = new UserModel({ name: 'Bill', @@ -90,4 +87,4 @@ However, before you do, please [open an issue on Mongoose's GitHub page](https:/ ### Next Up -Now that you've seen the basics of how to use Mongoose in TypeScript, let's take a look at [statics in TypeScript](/docs/typescript/statics.html). \ No newline at end of file +Now that you've seen the basics of how to use Mongoose in TypeScript, let's take a look at [statics in TypeScript](/docs/typescript/statics.html).