0
아래 그림과 같이 유티 앱 (고객, 프로젝트)에 두 개의 콜렉션이 있습니다. 프로젝트 문서에 저장된 customer_id를 기반으로 customer.name에 가입하려고하지만 찾을 수 없습니다 그렇게해라. 그래서 누군가 내가 어떻게 그렇게 할 수 있는지 제안함으로써 도움을받을 수 있습니까? 감사합니다여러 개의 문서에서 데이터를 검색하는 유성
Project {_id: "S83NEGHnrefvfASrf", title: "Meteor App 01", customerid: "QDGvBQhS6vYgZtnRr", duedate: "11/15/2014 11:42 PM"}
Customer {_id: "QDGvBQhS6vYgZtnRr", name: "Mary"}
projectslist.js :
Template.projectslist.helpers({
projectsList: function() {
return Projects.find({},{sort: {title: 1}});
}
});