Skip to content

Interface: ResourcefulIndexResult<ReturnType>

Result object returned by the resourceful index/list operation.

Contains paginated records along with metadata about the query execution and pagination state. The records are filtered according to field-level access control and only contain the requested fields.

Type Parameters

Type ParameterDefault typeDescription
ReturnTypeanyThe shape of records after field selection and ACL filtering

Properties

PropertyTypeDescription
aggregationsResourcefulIndexAggregateResultsAggregation results organized by field name and operation type
countQuerystringSQL query string used for counting total records
pagenumberThe current page number (1-based)
perPagenumberNumber of records per page
recordsPartial<ReturnType>[]Array of records with only the requested and accessible fields
recordsQuerystringSQL query string used for fetching the paginated records
totalnumberTotal number of records matching the filter (before pagination)