-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 7.0.11
-
Component/s: Docs, Persistence
-
Fully Compatible
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.
- is related to
-
MONGOID-5024 Allow removing fields
- Backlog
-
MONGOID-5025 Document caveats of embedded documents without _id field
- Closed
- links to