Creates a query to retrieve a list of schedule items.
The queryScheduleItems( )
function builds a query to retrieve a list of schedule items and returns a ItemsQueryBuilder
object.
The returned object contains the query definition, which is typically used to run the query using the find()
function.
You can refine the query by chaining ItemsQueryBuilder
functions onto the query. ItemsQueryBuilder
functions enable you to sort, filter, and control the results queryScheduleItems( )
returns.
queryScheduleItems( )
runs with these ItemsQueryBuilder
defaults, which you can override:
The functions that are chained to queryScheduleItems( )
are applied in the order they're called. For example, if you apply ascending('name')
and then descending('stageName')
, the results are sorted first by the name
, and then, if there are multiple results with the same name
, the items are sorted by stageName
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,ascending() ,descending() |
name | eq() ,ne() ,ascending() ,descending() |
description | eq() ,ne() ,ascending() ,descending() |
stageName | eq() ,ne() ,ascending() ,descending() |
_createdDate | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
_updatedDate | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
eventId | eq() ,ne() ,ascending() ,descending() |