Introduction
The data returned by the useQuery function is an instance ofQueryResult
, which contains the results of the query along with some additional information.
Properties
The number of rows returned by the query.
An array of
Field
objects, each one representing a column in the query result. Each Field
object has the following properties:name
: The name of the column.type
: The type of the column data.
type
property can be one of the following values: string
, integer
, float
, boolean
, datetime
, null
, unknown
.An array of rows returned by the query. Each row is represented by an array of values, where each element in the array corresponds to a field in the query result.