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:
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() |
name | eq() |
_createdDate | ascending() ,descending() |
Options to use when querying categories.