Skip to main content
Returns a single token category by its slug. Use it to render a category detail page header (name, description) before fetching the category’s tokens with categoryTokens. To list all categories, use categories.

Returns

Category
Category
See Category

Arguments

slug
String!
required
The category slug.

Example

Test this query in the Explorer →

Usage Guidelines

  • The slug is the same value as the category id and is the value stored on tokens.
  • Returns null when no category matches the slug.