Open lee-40square opened 9 years ago
The runtime does allow discovery to follow PK/FK (if options.relations === true). See https://github.com/strongloop/loopback-datasource-juggler/blob/master/lib/datasource.js#L1199.
strong-arc UI needs to provide a checkbox for the flag. After discovery, it should also allow developers to refine relation types. PK/FK doesn't provide enough information to tell if it's belongsTo, hasOne, or hasMany.
Using Strong Studio to discover models from a Postgres database, Studio is not adding the relations to the Loopback models.
Here's the dump
db_dump | uploaded via ZenHub