Document omitting _id field from embedded documents

XMLWordPrintableJSON

    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Oleg Pudeyev (Inactive)
              Reporter:
              Andrzej Taramina
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: