Open ghost opened 1 year ago
I see what you're trying to do. The links should really be added to the transform meta method so you can customise the links. For now you can do this manually but I'll look at add this in as a feature https://github.com/nestjsx/nestjs-typeorm-paginate?tab=readme-ov-file#custom-meta-data-transformer
I want to be able to use function paginate, but being able to remain my current filters query params.
For instance, I have the following endpoint:
As you can see, I have added the option type over there... But I cannot see this reflected on the links object when browsing in the api.
I would like to see it for example when applying the query params of type=fire:
"next": "http://localhost:3000/pokemons?page=2&limit=10&type=fire",
What am I doing wrong here?