Automattic / Automattic/mongoose

The default value of "minimize" option should be false

Open
#8,024 5 comments 1 reaction 0 assignees View on GitHub
backwards-breaking discussion performance
Dominant language
JavaScript
Stars
27.5k
Forks
4k
Avg merge
2d 5h
Merged PRs (30d)
32

Description

**Do you want to request a *feature* or report a *bug*?**

The Default value of the minimize option should be false.

**What is the current behavior?**
The default value is true.

**If the current behavior is a bug, please provide the steps to reproduce.**

This default behavior will remove empty Object without any notice.

**What is the expected behavior?**
Empty object should remove only when is intented to do so.

**What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.**
mongoose 5.6.6
DB 4.0.10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.