-
Notifications
You must be signed in to change notification settings - Fork 26
Description
In nestjsx/crud, by default, all relations are none-eager.
To make them load, we need to add &join=...
to the URL.
(Or turn on eager true on the controller.)
But what if, sometimes, we don't want them to be on?
Or we want only some of them?
React admin and the current dataProvider api does not have a way to configure extra query params, but only filter
& sort
But i have an idea for a possible solution:
pack the wish params inside the resource name, in a way the dataProvider will understand.
Possible implementation:
https://github.com/FusionWorks/react-admin-nestjsx-crud-dataprovider/pull/8/files#diff-1fdf421c05c1140f6d71444ea2b27638R218
Related:
marmelab/react-admin#3411
nestjsx/crud#160
Additional points:
customisable filter (One input -> several fields, event nested, with several different operators)