feathers-hooks-common icon indicating copy to clipboard operation
feathers-hooks-common copied to clipboard

keepQuery does not keep '$' query fields

Open stellarhoof opened this issue 5 years ago • 1 comments
trafficstars

Steps to reproduce

[keepQuery('field'), disablePagination()] does not work since keepQuery removes $limit

Expected behavior

keepQuery should either keep dollar query fields or a new hook should be provided.

stellarhoof avatar Nov 04 '20 20:11 stellarhoof

Why don't you use this: [keepQuery('field', '$limit'), disablePagination()] ?

I think a callback would be useful. Something like: [keepQuery((key) => key.startsWith('$'), 'field'), disablePagination()]. Are you up to add this change?

fratzinger avatar May 22 '22 21:05 fratzinger