> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/queries/lab-tests/biomarker-categories.md).

# Biomarker Categories

Biomarker Categories

Use the `biomarkerCategories` query to return all available biomarker categories.

### Available Arguments

| Argument   | Type   | Description                                                                                            |
| ---------- | ------ | ------------------------------------------------------------------------------------------------------ |
| `first`    | Int    | Retrieves the first results from the list.                                                             |
| `after`    | String | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |
| `before`   | String | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |
| `Id`       | ID     | Id of Biomarker category.                                                                              |
| `last`     | Int    | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |
| `parentId` | ID     | Id of parent category.                                                                                 |

### Available Fields

| Field Name    | Type     | Description                              |
| ------------- | -------- | ---------------------------------------- |
| `id`          | ID       | Id of Biomarker category.                |
| `name`        | String   | Name of category.                        |
| `order`       | Int      | Sets view order, ascending. Default = 0. |
| `createdAt`   | datetime | Use the format: `YYYY-MM-DDT hh:mm:ssZ`  |
| `updatedAt`   | datetime | Use the format: `YYYY-MM-DDT hh:mm:ssZ`  |
| `parent`      | parent   | Parent category.                         |
| `parent.id`   | ID       | Id of parent category.                   |
| `parent.name` | String   | Parent category name.                    |

### Example

{% tabs %}
{% tab title="Request" %}

```graphql
query {
  biomarkerCategories(first: 2) {
    edges {
      node {
        id
        name
        order
        createdAt
        updatedAt
        parent { 
          id 
          name 
          }
      }
    }
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "biomarkerCategories": {
      "edges": [
        {
          "node": {
            "id": "QmlvbWFya2VyQ2F0ZWdvcnk6NDg=",
            "name": "Adrenocortical hormones",
            "order": 1,
            "createdAt": "2022-11-09T21:15:59.404998+00:00",
            "updatedAt": "2022-11-09T21:15:59.405008+00:00",
            "parent": {
              "id": "QmlvbWFya2VyQ2F0ZWdvcnk6NDQ=",
              "name": "Hormonal studies"
            }
          }
        },
        {
          "node": {
            "id": "QmlvbWFya2VyQ2F0ZWdvcnk6MQ==",
            "name": "Allergy testing",
            "order": 0,
            "createdAt": "2022-11-09T21:15:59.401796+00:00",
            "updatedAt": "2022-11-09T21:15:59.401915+00:00",
            "parent": null
          }
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}
