Interface Query<T, U>

Type parameters

  • T

  • U

Hierarchy

Index

Properties

Optional amount

amount: number

Amount of items will return.

Optional fields

fields: keyof T[]

Array of field names.

Optional filter

filter: RecursivePartial<T>

Filter object.

Optional orderBy

orderBy: [Extract<keyof T, U>, "asc" | "desc"]

Tuple with a field and an order

Optional page

page: number

Page of list starting from 1