List categories

Returns a list of categories.

Query

query {
  categories {
    id

    category {
      id
      name
    }

    description
    name
    slug
  }
}

Example Response

{
  "data": {
    "categories": [
      {
        "id": "249d93f822d3a16514cefa1f",
        "category": {
          "id": "329d93f822d3a16514cefa1f",
          "name": "Clothing"
        },
        "description": null,
        "name": "Pants",
        "slug": "pants"
      }
    ]
  }
}