Query
Implements
- QueryInterface
Index
Constructors
constructor
Parameters
optionaloptions: QueryInterface
Returns Query
Properties
optionalfilterout
Type declaration
[key string]: string | number
optionalfilters
Type declaration
[key string]: any
optionalregions?: { region_ids: string[]; table_name: string }
region_ids: string[]
table_name: string
optionallastpage
optionalpage
optionalperpage
optionalsearch
optionalsearchFallback
optionalsearchField
optionalsort
optionalsortBy
optionalsortDir
optionalwithSchema
Methods
clearFilters
Returns void
get
Returns { filterout: {}; filters: { regions?: { region_ids: string[]; table_name: string } }; lastpage: boolean; page: number; perpage: number; search: string; searchFallback: boolean; searchField: string; sort: { field: string; order: string }[] }
filterout: {}
[key string]: string | number
filters: { regions?: { region_ids: string[]; table_name: string } }
[key string]: any
optionalregions?: { region_ids: string[]; table_name: string }
region_ids: string[]
table_name: string
lastpage: boolean
page: number
perpage: number
search: string
searchFallback: boolean
searchField: string
sort: { field: string; order: string }[]
hasFilters
Returns boolean
removeFilter
Parameters
fieldName: string
Returns void
requestSchema
Parameters
requestSchema: boolean
Returns void
resetFilters
Parameters
optionalfields: {}
Returns void
setFields
Parameters
fields: any
Returns void
setFilterField
Parameters
field: string
value: string | number
Returns void
setFilterOut
Parameters
fields: {}
Returns void
setFilters
Parameters
fields: {}
Returns void
setSearch
Parameters
search: string
Returns void
update
Parameters
query: QueryInterface
Returns void
Query class is used to construct a query that can be passed to the server to get objects or regions