Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
7.0.11
-
Fully Compatible
Description
Mongoid insists on creating _id fields for subdocuments.
How can I selectively (on a subdoc/class basis) suppress Mongoid from doing this?
This is trivial to do in Mongoose (NodeJS) by just specifying a schema option of _id: false.
How do I do the same thing in Mongoid?
And if Mongoid can't do this, please consider this a high priority feature request.
Attachments
Issue Links
- is related to
-
MONGOID-5024 Allow removing fields
-
- Backlog
-
-
MONGOID-5025 Document caveats of embedded documents without _id field
-
- Closed
-
- links to