Closed as not planned
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Mongoose version
8.9.4
Node.js version
20
MongoDB server version
8.0.4
Typescript version (if applicable)
No response
Description
I have an object, which contains nested objects, with an unknown structure. I do not want these nested objects minimized, however using minimize: false is not working.
export const TemplateSchema = new Schema(
{
Resources: { type: Schema.Types.Mixed, required: true },
},
{ minimize: false, _id: false, strict: false }
);
Steps to Reproduce
Create a mixed schema.
Save an object, with nested empty objects, with minimize: false, and it will still get minimized.
Expected Behavior
Nested objects should not be minimized.