How should I handle query filters with the new Infinite query feature ? #4952
-
Hey there ! As title says I'm using the new Infinite query feature and it's amazing ! Small question though, my API endpoint accepts a set of filters (I'm using nestjs-paginate for that https://www.npmjs.com/package/nestjs-paginate), how should I handle them in the infinite query payload ?
Thanks for your help ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah, I'd say that conceptually filters are part of your query args, as they define "the set of responses we're going to get". The page params represent "each individual page from this set of responses". Change the filters, different query arg, different set of responses. |
Beta Was this translation helpful? Give feedback.
Yeah, I'd say that conceptually filters are part of your query args, as they define "the set of responses we're going to get". The page params represent "each individual page from this set of responses". Change the filters, different query arg, different set of responses.