problem about population-Record and share programming errors
Andreas Hultgren
node.js mongodb mongoose populate population
here is my schema :var sourcesSchema = {title: String,name: String,url: String,description: String,category: Array,rating: Number,source_pages: [{type: mongoose.Schema.Types.ObjectId,ref: ‘source_page’,}] }var sourcePageschema = {uname: String,source_name: String,page_address: String,driver_name: String,product: {type: mongoose.Schema.Types.ObjectId,ref: ‘products’ //Edit: I’d put the schema. Silly me.} }var productsSchema = {title: String,uname: String,descriptin: String,image
Originally posted 2013-10-06 01:47:08.