# cafe.shelf.comment

> Published by [shelf.cafe](https://lexicon.garden/identity/did:plc:xo5sew2ggwpnnfmqk2cx2swa)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:xo5sew2ggwpnnfmqk2cx2swa/cafe.shelf.comment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:xo5sew2ggwpnnfmqk2cx2swa/cafe.shelf.comment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:xo5sew2ggwpnnfmqk2cx2swa/cafe.shelf.comment/examples)

## Definitions

### `cafe.shelf.comment`

**Type**: `record`

A comment on an item, optionally replying to another comment.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `parent` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `root` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `text` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A comment on an item, optionally replying to another comment.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "parent": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "root": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "maxGraphemes": 3000,
            "maxLength": 10000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "cafe.shelf.comment",
  "lexicon": 1
}
```
