queryCategories( )


Creates a query to retrieve a list of categories.

The queryCategories() function builds a query to retrieve a list of categories and returns a CategoriesQueryBuilder 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 CategoriesQueryBuilder functions onto the query. CategoriesQueryBuilder functions enable you to sort, filter, and control the results queryCategories() returns.

queryCategories() runs with these CategoriesQueryBuilder defaults, which you can override:

PROPERTYSUPPORTED FILTERS & SORTING
_ideq()
nameeq()
_createdDateascending(),descending()
Method Declaration
Copy
Method Parameters
optionsQueryCategoriesOptions

Options to use when querying categories.

Returns
Was this helpful?
Yes
No