Mongoose subdocuments vs nested schema

According to the docs, it’s exactly the same.
However, using a Schema would add an _id field as well (as long as you don’t have that disabled), and presumably uses some more resources for tracking subdocs.

Alternate declaration syntax

New in v3 If you don’t need access to the sub-document schema instance, you may also declare sub-docs by simply passing an object literal […]

Leave a Comment