문제

Say I have three models:

user
projects
files

User has many projects and project has many files. If I run the following in console:

User.find().populate('projects').exec(function(err,r){console.log(r[0].toJSON())});

I will see all projects but no files within projects. Is it possible to populate files as well?

도움이 되었습니까?

해결책

No, this is currently not supported.

See this thread. https://github.com/balderdashy/waterline/issues/256

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top