Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5019

Document omitting _id field from embedded documents

    • 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.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            ataramina@shorecg.com Andrzej Taramina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: