This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a query to retrieve a list of rich content entities.
The queryRichContent()
function builds a query to retrieve a list of events and returns a RichContentQueryBuilder
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 RichContentQueryBuilder
functions onto the query. RichContentQueryBuilder
functions enable you to sort, filter, and control the results queryRichContent()
returns.
queryRichContent()
runs with these RichContentQueryBuilder
defaults, which you can override:
skip(0)
limit(50)
descending("_createdDate")
The functions that are chained to queryRichContent()
are applied in the order they're called. For example, if you apply ascending('eventId') and then descending('id'), the results are sorted first by the event ID, and then, if there are multiple results with the same event ID, the items are sorted by ID.PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
eventId | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
fieldName | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |