Skip to content

Commit b51a730

Browse files
authored
Merge pull request #14758 from abdelrahman-elkady/patch-1
docs: fix a wrong example in v6 migration guide
2 parents 8be1ae8 + b48801b commit b51a730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migrating_to_6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Schema paths declared with `type: { name: String }` become single nested subdocs
314314

315315
```javascript
316316
// In Mongoose 6, the below makes `foo` into a subdocument with a `name` property.
317-
// In Mongoose 5, the below would make `foo` a `Mixed` type, _unless_ you set `typePojoToMixed: true`.
317+
// In Mongoose 5, the below would make `foo` a `Mixed` type, _unless_ you set `typePojoToMixed: false`.
318318
const schema = new Schema({
319319
foo: { type: { name: String } }
320320
});

0 commit comments

Comments
 (0)