Get a category

Returns a category.

Query

query ($id: ID!) {
  category(id: $id) {
    id

    category {
      id
      name
    }

    description
    name
    slug
  }
}

Arguments

id: ID!

The ID of the category.

Example Response

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