From b48801b276db71cad17eb9f9f6177b25413c9dba Mon Sep 17 00:00:00 2001 From: Abdelrahman Elkady Date: Tue, 23 Jul 2024 16:45:14 +0300 Subject: [PATCH] docs: fix a wrong example in v6 migration guide fixes a wrong example with `typePojoToMixed` behavior in mongoose 5 --- docs/migrating_to_6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migrating_to_6.md b/docs/migrating_to_6.md index 36d670fc343..f0b91a5f9b8 100644 --- a/docs/migrating_to_6.md +++ b/docs/migrating_to_6.md @@ -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 } } });