Builder Class
addon/query/builder.js:22
Class of builder for query. Uses method chaining.
Constructor
Item Index
Methods
build
()
Object
public
Builds query instance using all provided data.
Returns:
Query instance.
byId
-
id
Sets the id of the requested entity.
Returns:
Returns this instance.
count
()
Query.Builder
public
chainable
Returns:
Returns this instance.
from
-
modelName
Sets the name of the requested entity.
Parameters:
-
modelNameStringThe name of the requested entity.
Returns:
Returns this instance.
isOf
-
typeName
Restricts the selectable objects to the specified type.
Parameters:
-
typeNameStringThe model name of which the selectable objects should be assigned.
Returns:
Returns this instance.
ofDataType
-
dataType
Parameters:
-
dataTypeStringThe name of the data type.
Returns:
Returns this instance.
orderBy
-
property
Parameters:
-
propertyString
Returns:
Returns this instance.
select
-
attributes
Adds attributes for selection. Automatically checks duplications.
Parameters:
-
attributesString
Returns:
Returns this instance.
selectByProjection
-
projectionName -
idFromProjection
Adds attributes for selection from specified projection.
Merges attributes with added using select.
Returns:
Returns this instance.
skip
-
skip
Parameters:
-
skipNumber
Returns:
Returns this instance.
top
-
top
Parameters:
-
topNumber
Returns:
Returns this instance.
where
-
args
Parameters:
-
argsObject multiple
Returns:
Returns this instance.
withCustomParams
-
customQueryParams
Parameters:
-
customQueryParamsObject
Returns:
Returns this instance.
Flexberry Documentation