Page Contents
Home > @loopback/sequelize > SequelizeCrudRepository > registerInclusionResolver
SequelizeCrudRepository.registerInclusionResolver() method
Register an inclusion resolver for the related model name.
Signature:
registerInclusionResolver(relationName: string, resolver: InclusionResolver<T, Entity>): void;
Parameters
Parameter | Type | Description |
---|---|---|
relationName | string | Name of the relation defined on the source model |
resolver | InclusionResolver<T, Entity> | Resolver function for getting related model entities |
Returns:
void