Skip to content

Commit

Permalink
Merge pull request #14758 from abdelrahman-elkady/patch-1
Browse files Browse the repository at this point in the history
docs: fix a wrong example in v6 migration guide
  • Loading branch information
vkarpov15 authored Jul 23, 2024
2 parents 8be1ae8 + b48801b commit b51a730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migrating_to_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Schema paths declared with `type: { name: String }` become single nested subdocs

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

0 comments on commit b51a730

Please sign in to comment.