How do I use a remote method in one model to return info from another model?
问题 So I've set up something really simple to learn how to use Loopback. The models are as follows: Person - based on built in User model food_pref typeId (number) personId (number) food_type type (string) Relationships: Person has many food_prefs (foreign key: personId) food_pref belongs to Person (foreign key: personId) food_pref belongs to food_type (foreign key: typeId) An auto-generated method gets created that returns the food_prefs based on the id of the Person. People/{id}/foodPrefs This