-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for "include" and "fields" to findById (REST API) #1721
Comments
LoopBack 4 does not support inclusion of related models yet. The issue #1352 is keeping track of implementing support for |
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
any updates? |
Let's say our application has a
Customer
model that has manyOrder
instances.In LoopBack 3.x, one can can fetch a customer with all their orders.
We should support this feature in LoopBack 4 too.
Acceptance criteria
Filter
properties are supported byfindById
EntityCrudRepository.prototype.findById
- fix the type of thefilter
argument to use the new TypeScript type describing only the properties supported byfindById
. Fix all implementations of this interface, include tests.findById
.order
,skip
,limit
, andwhere
clauses withfindById
. See Filter on findById is ignoring the where clause #3336.Done in #4114
filter
parameter.findById
implementation to include the newfilter
argument.Note: the argument name
filter
may not be descriptive enough, feel free to find a better name.IMPORTANT: This feature depends on #1352.
The text was updated successfully, but these errors were encountered: