Categorias

List the categories for the filtered company

There are filters available, check playground

POST -> /graphql

query {
  allCategories(company: "Q29tcGFueU5vZGU6MQ==") {
    edges {
      node {
        id
        name
        limitValue
      }
      cursor
    }
    pageInfo {
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
  }
}

Response

{
    "data": {
        "allCategories": {
            "edges": [
                {
                    "cursor": "YXJyYXljb25uZWN0aW9uOjA=",
                    "node": {
                        "id": "Q2F0ZWdvcnlOb2RlOjIwNDUy",
                        "limitValue": "111.00",
                        "name": "Cat 1"
                    }
                },
                {
                    "cursor": "YXJyYXljb25uZWN0aW9uOjE=",
                    "node": {
                        "id": "Q2F0ZWdvcnlOb2RlOjk3NDc=",
                        "limitValue": "1.00",
                        "name": "Cat 2"
                    }
                }
            ],
            "pageInfo": {
                "endCursor": "YXJyYXljb25uZWN0aW9uOjE2",
                "hasNextPage": false,
                "hasPreviousPage": false,
                "startCursor": "YXJyYXljb25uZWN0aW9uOjA="
            }
        }
    }
}