Top "Subdocument" questions

Concept in document-oriented databases, where a field in document is a document in itself.

Stop Mongoose from creating _id property for sub-document array items

If you have subdocument arrays, Mongoose automatically creates ids for each one. Example: { _id: "mainId" subDocArray: [ { _id: "unwantedId", field: "value" }, { _…

node.js mongodb mongoose subdocument
mongoose - ObjectId that references a Sub-Document

Would it be possible for an ObjectId in ModelA to reference a sub-document in modelB? var C = new Schema({...}); var …

node.js mongodb mongoose subdocument
insert in subdocument with mongoDB

I have the following document in the collection: "_id" : "2", "workspace" : [{ "name" : "1", "widgets" : [ ] },{ "name" : "2", "widgets" : [ ] },{ "name" : "3", "widgets" : [ ] },{ "name" : "4", "widgets" : [ ] } ]} How can …

javascript mongodb meteor subdocument
Mongoose for var in loop in subdocuments

I created this schema with mongoose Schema : socialAccount = new Schema({ socialNetwork : { type : String , required : true}, userid : { type : Number, required : true }, …

node.js mongodb for-loop mongoose subdocument
In MongoDB, when to use a simple subdocument, when an array with 2-field elements?

Background I am storing table rows as MongoDb documents, with each column having a name. Let's say table has these …

mongodb subdocument