Skip to content

disablePagination

Source Code | Documentation

Disables pagination when query.$limit is -1 or '-1'.

ts
  import { 
disablePagination
} from 'feathers-utils/hooks';

Type declaration

ts
/**
 * Disables pagination when `query.$limit` is `-1` or `'-1'`.
 *
 * @see https://utils.feathersjs.com/hooks/disable-pagination.html
 */
export declare const disablePagination: <
  H extends HookContext = HookContext,
>() => (context: H, next?: NextFunction) => any
typemethodsmulti
beforefindyes

Released under the MIT License.