feathers-hooks-common
feathers-hooks-common copied to clipboard
keepQuery does not keep '$' query fields
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.
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?