Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Nested refs #112

Open
bstahlhood opened this issue Jul 28, 2014 · 2 comments
Open

Question: Nested refs #112

bstahlhood opened this issue Jul 28, 2014 · 2 comments

Comments

@bstahlhood
Copy link
Contributor

Let's say I have some schemas:

var aSchema = new Schema({
    things: [{type: Schema.Types.ObjectId, ref: 'B'}]
}

var bSchema = new Schema({
    moreThings: [{type: Schema.Types.ObjectId, ref: 'C'}]
}

var cSchema = new Schema({
    /// fields here
}

How can I specify that when I list_populate['things'] that moreThings gets populated as well?

@bstahlhood
Copy link
Contributor Author

@refack Any tricks I am missing to do sub-populates? Or is this not supported at this time?

@iamdeadman
Copy link

has anyone continued developing along this line ? are there any tricks for adding arrays with and without refs, because I am still getting an error after adding arrays to models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants