Skip to content

Commit 8fe5c36

Browse files
committed
docs: fix lint
1 parent c7f110e commit 8fe5c36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/migrating_to_8.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ rawDoc.nested; // undefined in Mongoose 8, {} in Mongoose 7
134134

135135
<h2 id="apply-base-schema-paths-before-discriminator-paths"><a href="#apply-base-schema-paths-before-discriminator-paths">Apply base schema paths before discriminator paths</a></h2>
136136

137-
This means that, in Mongoose 8, getters and setters on discriminator paths run _after_ getters and setters on base paths.
138-
In Mongoose 7, getters and setters on discriminator paths ran _before_ getters and setters on base paths.
137+
This means that, in Mongoose 8, getters and setters on discriminator paths run *after* getters and setters on base paths.
138+
In Mongoose 7, getters and setters on discriminator paths ran *before* getters and setters on base paths.
139139

140140
```javascript
141141

@@ -263,4 +263,5 @@ const schema = new Schema<User>({
263263

264264
// Works in Mongoose 8. Compile error in Mongoose 7.
265265
const names: string[] = await MyModel.distinct('name');
266-
```
266+
```
267+

0 commit comments

Comments
 (0)