DataResult
A class representing the necessary operations to create the result of a query in the client database that emitted the query.
Constructors
Constructor
new DataResult(): DataResult;
Returns
DataResult
Methods
fromQuery()
static fromQuery(query): DataResult;
Create a new DataResult instance from the specified Query.
Parameters
Parameter | Type | Description |
---|---|---|
query | Query <CloudObject , any > | The Query to create a DataResult from. |
Returns
DataResult
A new DataResult instance.
create()
create(
tag,
model,
properties?): this;
Create a new Data Type instance with the specified InstanceOrTag, Data Type and properties.
Parameters
Parameter | Type | Description |
---|---|---|
tag | InstanceOrTag | The unique identifier of the object instance to create. |
model | InstanceOrTag | The Data Type of the instance to create. |
properties? | Map <InstanceOrTag , any > | The properties to set on the instance. |
Returns
this
This DataResult instance.
createRelation()
createRelation(
relation,
from,
to): this;
Create a relation between two instances with the specified Relation, from
, and to
instance tags.
Parameters
Parameter | Type | Description |
---|---|---|
relation | InstanceOrTag | The type of relation to create. |
from | InstanceOrTag | The unique identifier of the source instance. |
to | InstanceOrTag | The unique identifier of the destination instance. |
Returns
this
This DataResult instance.