sourcefuse / loopback4-starter

Loopback 4 starter application. Multi-tenant architecture supported. Authentication, Authorization, Soft deletes, environment vars, Audit logs, included.
MIT License
158 stars 59 forks source link

Question: Shouldn't the belongsTo relation in the models be KeyTo? #14

Closed vikramkh closed 5 years ago

vikramkh commented 5 years ago

In the Loopback 4 API docs, it says belongsTo should use KeyTo to reference a foreign key to another column. Why do the models here use keyFrom?

vikramkh commented 5 years ago

Never Mind, when I use KeyTo, everything seems to break anyway.

vikramkh commented 5 years ago

I see keyTo is actually for hasMany().