Add keyFrom
to resolved relation metadata
#3441
Labels
feature
Relations
Model relations (has many, etc.)
Repository
Issues related to @loopback/repository package
Milestone
Add
keyFrom
to HasOne/HasMany resolved metadata. This enables a more generic implementation of inclusion resolvers, because we can usekeyFrom
instead of having to find out what is the name of the primary key (which I found difficult to implement inside inclusion resolvers because of TypeScript limitations).See #3387 and a624d970 in particular
Acceptance criteria
Implementation + test coverage, please create new unit test files to test metadata resolution in an isolated way.
(BelongsTo already has
keyFrom
in the metadata.)The text was updated successfully, but these errors were encountered: