# listDealComments

One deal's comment thread, most-recent-first (the activity feed narrowed to COMMENT events, paged at the database: the full thread stays reachable however busy the rest of the feed is). The comment text is in the SuperJSON payload at `json.body`; actor identifies the commenter. Page with offset.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listDealComments", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no
- Result cap: `limit` is clamped to 50, without an error

## Variables

- `dealId`: `ID!` (required)
- `limit`: `Int` (default `50`)
- `offset`: `Int`

## Response (data, an example)

```json
{
  "dealQuery": {
    "getDeal": {
      "id": "<ID>",
      "events": [
        {
          "id": "<ID>",
          "eventType": "STAGE_CHANGED",
          "createdAt": "2026-01-01T00:00:00.000Z",
          "actor": {
            "userId": "<ID>",
            "name": "…"
          },
          "payload": "…"
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listDealComments",
    "variables": {
      "dealId": "<dealId>"
    }
  }'
```
