Skip to content

Commit 4317850

Browse files
committed
docs: fix markdown lint
1 parent 3b594a6 commit 4317850

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/migrating_to_6.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ However, this behavior was a source of confusion in some cases, so in Mongoose 7
153153
```javascript
154154
mongoose.set('strictQuery', false);
155155
```
156+
156157
In a test suite, it may be useful to set `strictQuery` to `throw`, which will throw exceptions any time a query references schema that doesn't exist, which could help identify a bug in your tests or code.
157158

158159
Here's an example of the effect of `strictQuery`:
@@ -520,7 +521,7 @@ The `reconnectTries` and `reconnectInterval` options have been removed since the
520521
The MongoDB node driver will always attempt to retry any operation for up to `serverSelectionTimeoutMS`, even if MongoDB is down for a long period of time.
521522
So, it will never run out of retries or try to reconnect to MongoDB.
522523

523-
## Lodash `.isEmpty()` returns true for ObjectIds #{lodash-object-id}
524+
## Lodash `.isEmpty()` returns true for ObjectIds {#lodash-object-id}
524525

525526
Lodash's `isEmpty()` function returns true for primitives and primitive wrappers.
526527
`ObjectId()` is an object wrapper that is treated as a primitive by Mongoose.
@@ -534,7 +535,7 @@ if (!(val instanceof Types.ObjectId) && _.isEmpty(val)) {
534535
}
535536
```
536537

537-
## Removed `mongoose.modelSchemas` #{model-schemas}
538+
## Removed `mongoose.modelSchemas` {#model-schemas}
538539

539540
The `mongoose.modelSchemas` property was removed. This may have been used to delete a model schema.
540541

@@ -546,7 +547,6 @@ delete mongoose.modelSchemas.User;
546547
delete mongoose.deleteModel('User');
547548
```
548549

549-
550550
## TypeScript changes
551551

552552
The `Schema` class now takes 3 generic params instead of 4. The 3rd generic param, `SchemaDefinitionType`, is now the same as the 1st generic param `DocType`. Replace `new Schema<UserDocument, UserModel, User>(schemaDefinition)` with `new Schema<UserDocument, UserModel>(schemaDefinition)`

docs/migrating_to_7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ If you want to use Bluebird for all promises globally, you can do the following:
339339
global.Promise = require('bluebird');
340340
```
341341

342-
## Deprecated `keepAlive` #{deprecated-keepalive}
342+
## Deprecated `keepAlive` {#deprecated-keepalive}
343343

344344
Before Mongoose 5.2.0, you needed to enable the `keepAlive` option to initiate [TCP keepalive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) to prevent `"connection closed"` errors.
345345
However, `keepAlive` has been `true` by default since Mongoose 5.2.0, and the `keepAlive` is deprecated as of Mongoose 7.2.0.

0 commit comments

Comments
 (0)