Skip to content

Commit 0305c3b

Browse files
authoredAug 30, 2021
update TS docs to reflect connect Opts
as mentioned here #10632
1 parent 463f2d8 commit 0305c3b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎docs/typescript.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ run().catch(err => console.log(err));
3737

3838
async function run(): Promise<void> {
3939
// 4. Connect to MongoDB
40-
await connect('mongodb://localhost:27017/test', {
41-
useNewUrlParser: true,
42-
useUnifiedTopology: true
43-
});
40+
await connect('mongodb://localhost:27017/test');
4441

4542
const doc = new UserModel({
4643
name: 'Bill',
@@ -90,4 +87,4 @@ However, before you do, please [open an issue on Mongoose's GitHub page](https:/
9087

9188
### Next Up
9289

93-
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).
90+
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).

0 commit comments

Comments
 (0)
Please sign in to comment.