Hey,
I have the following schemas ( simplified for issue)
User = new Schema
login:String
A = new Schema
emb: [B]
comments: [Comments]
//and following embedded schemas
B = new Schema
comments: [Comments]
Comments = new Schema
creator:
type: ObjectId
ref: 'User'
message: String
Now while populate works on A
eg A.find().populate('comments.creator')
it doesn't work on the double nested embedded doc
eg A.find().populate('emb.comments.creator')
Any ideas?
Hey,
I have the following schemas ( simplified for issue)
User = new Schema
login:String
A = new Schema
emb: [B]
comments: [Comments]
//and following embedded schemas
B = new Schema
comments: [Comments]
Comments = new Schema
creator:
type: ObjectId
ref: 'User'
message: String
Now while populate works on A
eg A.find().populate('comments.creator')
it doesn't work on the double nested embedded doc
eg A.find().populate('emb.comments.creator')
Any ideas?