Documentation / queries/QueryResult
queries/QueryResult
Classes
QueryResult<TDataType>
Represents the result from executing a IQueryFor.
Type Parameters
• TDataType = object
The data type.
Implements
IQueryResult
<TDataType
>
Constructors
new QueryResult()
new QueryResult<
TDataType
>(result
,instanceType
,enumerable
):QueryResult
<TDataType
>
Creates an instance of query result.
Parameters
result
ServerQueryResult
The raw result from the backend.
instanceType
Constructor
The type of instance to deserialize.
enumerable
boolean
Whether or not the result is supposed be an enumerable or not.
Returns
QueryResult
<TDataType
>
Defined in
Properties
data
readonly
data:TDataType
Gets the data result from the query.
Implementation of
Defined in
exceptionMessages
readonly
exceptionMessages:string
[]
Gets any exception messages that might have occurred.
Implementation of
IQueryResult
.exceptionMessages
Defined in
exceptionStackTrace
readonly
exceptionStackTrace:string
Gets the stack trace if there was an exception.
Implementation of
IQueryResult
.exceptionStackTrace
Defined in
hasExceptions
readonly
hasExceptions:boolean
Gets whether or not there are any exceptions that occurred.
Implementation of
Defined in
isAuthorized
readonly
isAuthorized:boolean
Gets whether or not the query was authorized to execute.
Implementation of
Defined in
isSuccess
readonly
isSuccess:boolean
Gets whether or not the query executed successfully.
Implementation of
Defined in
isValid
readonly
isValid:boolean
Gets whether or not the query is valid.
Implementation of
Defined in
paging
readonly
paging:PagingInfo
Gets the paging information.
Implementation of
Defined in
validationResults
readonly
validationResults:ValidationResult
[]
Gets any validation errors. If this collection is empty, there are errors.
Implementation of
IQueryResult
.validationResults
Defined in
noSuccess
static
noSuccess:QueryResult
Defined in
Accessors
hasData
Get Signature
get hasData():
boolean
Gets whether or not the query has data.
Returns
boolean
Gets whether or not the query has data.
Implementation of
Defined in
Methods
empty()
static
empty<TDataType
>(defaultValue
):QueryResult
<TDataType
>
Type Parameters
• TDataType
Parameters
defaultValue
TDataType
Returns
QueryResult
<TDataType
>