@serenity-is/corelib / ListResponse
Interface: ListResponse<TEntity>
Defined in: src/base/servicetypes.ts:350
Response DTO for List handlers.
Extends
Type Parameters
TEntity
TEntity
Row / entity type of the listed records.
Properties
Aggregates?
optionalAggregates:AggregateGroup
Defined in: src/base/servicetypes.ts:367
The aggregates of all the rows the request matches, and of their groups, when requested. Not set when the handler doesn't support aggregates, in which case they can only be calculated from the returned entities.
Entities?
optionalEntities:TEntity[]
Defined in: src/base/servicetypes.ts:352
Page of entities matching the request.
Error?
optionalError:ServiceError
Defined in: src/base/servicetypes.ts:27
Error information when the request failed; undefined on success.
Inherited from
More?
optionalMore:boolean
Defined in: src/base/servicetypes.ts:362
Whether more records are available beyond the returned page, when requested.
Skip?
optionalSkip:number
Defined in: src/base/servicetypes.ts:358
Echo of Skip from the request.
Take?
optionalTake:number
Defined in: src/base/servicetypes.ts:360
Echo of Take from the request.
TotalCount?
optionalTotalCount:number
Defined in: src/base/servicetypes.ts:356
Total number of records matching the filter (before paging), unless ExcludeTotalCount was set.
Values?
optionalValues:any[]
Defined in: src/base/servicetypes.ts:354
Alternative Values array used by some handlers that return raw values instead of entities.