Include related models in DefaultCrudRepository
#3446
Labels
feature
Relations
Model relations (has many, etc.)
Repository
Issues related to @loopback/repository package
Milestone
Modify
DefaultCrudRepository
to leverage InclusionResolvers to fetch related models infind*
methods.See #3387 for more details & a prototype implementation.
Acceptance criteria
DefaultCrudRepository
class: add a new public propertyinclusionResolvers
and a new public methodregisterInclusionResolver
includeRelatedModels
, this method will become an extension point for repository classes extending our default implementation.find
,findById
andfindOne
methods to callincludeRelatedModels
and removefilter.include
from the filter argument passed to juggler'sPersistedModel
APIs (seenormalizeFilter
in the spike).includeRelatedModels
(see IntroduceInclusionResolver
concept #3445)The text was updated successfully, but these errors were encountered: