export function keepQuery<H extends HookContext = HookContext>(...fieldNames: string[]) {
  return (context: H) => {
    checkContext(context, 'before', null, 'keepQuery');

    const query = context.params.query || {};