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

Document omitting _id field from embedded documents

    XMLWordPrintable

Details

    • 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

          Activity

            People

              oleg.pudeyev@mongodb.com Oleg Pudeyev
              ataramina@shorecg.com Andrzej Taramina
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: