nestjsx / crud

NestJs CRUD for RESTful APIs

Home Page:https://github.com/nestjsx/crud/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

access to Query Params from custom endpoint

makthomas opened this issue · comments

Is there a way to use CrudRequest in a custom endpoint and to have access in Query Params and their functionality? For example to have something like that:

custom endpoint: /something/3/stats?filter[0]=price||$lte||100

@Get('/:id/stats')
async getStatistics(
  @Param('id') id:number,
  @ParsedRequest() req: CrudRequest
) {
  . . .
}

and to have access to these Query Params and the way they works:
image
or how to extend the functionality that the Query Params have?