You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When declaring the filter option inside of the @Crud() decorator for a controller it is only working when provided as a static object. When I use the documented QueryFilterFunction, as described [in the docs (https://github.com/nestjsx/crud/wiki/Controllers#filter), the first parameter is receiving undefined and all filters are ignored.
I need to extend any incoming filters with some persisted filters based on the current date for the records. Using new Date() in the static object generates a matching static date-value and therefore breaks my intent. The solution makes sense to use a factory function to merge the search options, but so long as the incoming SCondition is empty that is impossible.
I'm using the latest releases for the following libraries.
When declaring the
filter
option inside of the@Crud()
decorator for a controller it is only working when provided as a static object. When I use the documentedQueryFilterFunction
, as described [in the docs (https://github.com/nestjsx/crud/wiki/Controllers#filter), the first parameter is receivingundefined
and all filters are ignored.I need to extend any incoming filters with some persisted filters based on the current date for the records. Using
new Date()
in the static object generates a matching static date-value and therefore breaks my intent. The solution makes sense to use a factory function to merge the search options, but so long as the incomingSCondition
is empty that is impossible.I'm using the latest releases for the following libraries.
"@nestjs/typeorm": "~7.1.0",
"@nestjsx/crud": "~4.6.2",
"@nestjsx/crud-typeorm": "~4.6.2",
"typeorm": "~0.2.25"
The text was updated successfully, but these errors were encountered: