querySections( )


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 sections.

The querySections() function builds a query to retrieve a list of sections and returns a SectionsQueryBuilder object.

The returned object contains the query definition, which is used to run the query using the find() function.

You can refine the query by chaining SectionsQueryBuilder functions onto the query. SectionsQueryBuilder functions enable you to filter, sort, and control the results that querySections() returns.

querySections() runs with the following SectionsQueryBuilder defaults, which you can override:

The following SectionsQueryBuilder functions are supported for querySections(). For a full description of the section object, see the object returned for the items property in SectionsQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
_idin(),eq(),ne()
_createdDategt(),ge(),lt(),le(),eq(),ne()
_updatedDategt(),ge(),lt(),le(),eq(),ne()
namein(),startsWith(),eq(),ne()
descriptionin(),startsWith(),eq(),ne()
imageexists()
itemIdsexists()
Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?