You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrating_to_8.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -134,8 +134,8 @@ rawDoc.nested; // undefined in Mongoose 8, {} in Mongoose 7
134
134
135
135
<h2id="apply-base-schema-paths-before-discriminator-paths"><ahref="#apply-base-schema-paths-before-discriminator-paths">Apply base schema paths before discriminator paths</a></h2>
136
136
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.
139
139
140
140
```javascript
141
141
@@ -263,4 +263,5 @@ const schema = new Schema<User>({
263
263
264
264
// Works in Mongoose 8. Compile error in Mongoose 7.
0 commit comments