Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement InclusionResolver for belongsTo relation #3448

Closed
5 tasks
bajtos opened this issue Jul 26, 2019 · 0 comments · Fixed by #3721
Closed
5 tasks

Implement InclusionResolver for belongsTo relation #3448

bajtos opened this issue Jul 26, 2019 · 0 comments · Fixed by #3721
Assignees
Labels
feature Relations Model relations (has many, etc.) Repository Issues related to @loopback/repository package

Comments

@bajtos
Copy link
Member

bajtos commented Jul 26, 2019

Acceptance criteria

  • Implement a factory function for creating an inclusion resolver for the given belongsTo relation (see createBelongsToInclusionResolver in the spike - RFC: Resolver for inclusion of related models #3387).
  • Enhance BelongsToAccessor to provide resolver property (see the spike).
  • Write integration-level tests in packages/repository-tests to verify that resolver works for real databases.
  • Feel free to write unit-level tests using mocked repositories too, as needed.
  • Update documentation (e.g. Configuring a belongsTo relation to explain how to enable or disable inclusion. Include examples showing how to build a query to include related model(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Relations Model relations (has many, etc.) Repository Issues related to @loopback/repository package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants