Skip to content

Commit d278258

Browse files
authoredSep 1, 2021
Merge pull request #10645 from theonlydaleking/patch-1
update TS docs to reflect connect Opts
2 parents bb7c021 + 0305c3b commit d278258

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.