Topic= new Schema({name: String,slug: String});Foo = new Schema({name: String,_topics: [ { type: ObjectId, ref: 'Topic' } ]});
[{name: 'A',_topics: [{slug: 'technology',_id: '4e9b9b88196415a47200000a'}]},{name: 'B',_topics: [{slug: 'cooking',_id: '4e9b9b88196415a472000006'}]}]
--
http://mongoosejs.com
http://github.com/learnboost/mongoose
You received this message because you are subscribed to the Google
Groups "Mongoose Node.JS ORM" group.
To post to this group, send email to mongoo...@googlegroups.com
To unsubscribe from this group, send email to
mongoose-orm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mongoose-orm?hl=en
Foo.find({'_topics.slug': cooking}
Is that a mongoose limitation, or just not implemented yet to filter the entire query based where keys are populated. It populates while scanning each row? So if I were to submit a patch to mongoose where it checks if the key matches the populate, would that be accepted?