dash.categories
Category listing and filtering methods.
Updated
On this page
dash.categories
list(options?)
const { categories } = await dash.categories.list({ tree: true, parent: "flower" })
get(slug, options?)
const { category } = await dash.categories.get("flower", { includeProducts: true, limit: 20 })
getTree()
Full nested category hierarchy. See List Categories.
const { categories } = await dash.categories.getTree()
getByDepth(depth)
const { categories } = await dash.categories.getByDepth(0) // top-level only
getChildren(parentSlug)
const { categories } = await dash.categories.getChildren("flower")