# Symptom

Use the `symptom` query to retrieve Symptom details by Id.

### Required Arguments

| Argument | Type | Description |
| -------- | ---- | ----------- |
| `id`     | ID!  | Symptom Id. |

### Available Fields

| Field Name    | Type            | Description                                                                               |
| ------------- | --------------- | ----------------------------------------------------------------------------------------- |
| `id`          | ID              | Symptom Id.                                                                               |
| `name`        | String          | Symptom name.                                                                             |
| `description` | String          | Symptom description.                                                                      |
| `createdAt`   | DateTime        | Date when the symptom was created.                                                        |
| `updatedAt`   | DateTime        | Date when the symptom was last updated.                                                   |
| `categories`  | SymptomCategory | [Symptom category](https://docs.suggestic.com/graphql/objects/symptoms/symptom-category). |

### Example

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

```graphql
query {
  symptom(id:"U3ltcHRvbTpkMjQ5M2IyMC04YzhiLTQwMDUtODg4Ny0wMzE1YWQ4MzYzYTg="){
    id
    name
    description
    createdAt
    updatedAt
    categories{
      id
      name
      description
    }
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "symptom": {
      "id": "U3ltcHRvbTpkMjQ5M2IyMC04YzhiLTQwMDUtODg4Ny0wMzE1YWQ4MzYzYTg=",
      "name": "Abdominal pain/cramping",
      "description": "Pain or discomfort in the stomach area",
      "createdAt": "2025-05-21T16:09:13.202366+00:00",
      "updatedAt": "2025-05-21T16:09:13.202392+00:00",
      "categories": [
        {
          "id": "U3ltcHRvbUNhdGVnb3J5OjBiZDUzNTg5LWVjMDYtNGU0Ni1hMjQzLTc3MTQ1OTU0NjZmNA==",
          "name": "Gastrointestinal"
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}
