Skip to content

Commit

Permalink
Merge pull request #10645 from theonlydaleking/patch-1
Browse files Browse the repository at this point in the history
update TS docs to reflect connect Opts
  • Loading branch information
vkarpov15 authored Sep 1, 2021
2 parents bb7c021 + 0305c3b commit d278258
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ run().catch(err => console.log(err));

async function run(): Promise<void> {
// 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',
Expand Down Expand Up @@ -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).
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 comments on commit d278258

Please sign in to comment.