queryRichContent( )


Developer Preview

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.
PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
eventIdeq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
fieldNameeq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
Permissions
Manage Bookings Services and Settings
Manage Events - all permissions
Read Events - all read permissions
Read Events
Manage Guest List
Manage Portfolio
Manage Restaurants - all permissions
Manage Events
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
JavaScript
Did this help?