Modify Repository find*
methods to include navigational properties
#2632
Labels
feature
Relations
Model relations (has many, etc.)
Repository
Issues related to @loopback/repository package
Milestone
Modify Repository
find*
method signatures to include navigational properties in the description of the return typeRelations
to CRUD-related Repository interfaces and implementations.find
andfindById
to returnT & Relations
instead ofT
. If this requires too many explicit casts, then consider usingT & Partial<Relations>
instead, assuming it improves the situation.See the spike #2592 for more details, especially the changes made in packages/repository/src/repositories/repository.ts and packages/repository/src/repositories/legacy-juggler-bridge.ts.
Acceptance criteria
lb4 model
to start emitting{ModelName}Relations
interfaceslb4 repository
to include{ModelName}Relations
in the generic parameters ofDefaultCrudRepository
we are inheriting fromThe text was updated successfully, but these errors were encountered: