# AssetComment

> Type in domain **Comments**

- HTML: [AssetComment.html](AssetComment.html)
- Raw SDL: [AssetComment.sdl](AssetComment.sdl)
- Covered by: [llms.txt](../llms.txt)

Implements: `Node`, `Comment`

## Fields

- `id`: `ID!` — `AssetComment` id.
- `creator`: `User!` — `User` who created the `AssetComment`.
- `createdAt`: `DateTime!` — `DateTime` of the `AssetComment`'s creation.
- `modifier`: `User` — `User` who last modified the `AssetComment`.
- `modifiedAt`: `DateTime` — `DateTime` of the `AssetComment`'s last modification.
- `content`: `String!` — The content of the `AssetComment`. Contains `User` mentions in the format `@[user:USER_ID].`
- `mentionedUsers`: `[User]!` — Mentioned `User` list in the `content` field.
- `isResolved`: `Boolean!` — Indicates if an `AssetComment` is resolved or not.
- `replies` (`limit`: `Int`, `page`: `Int`): `AssetCommentReplyItems!` — `AssetComment`'s `AssetCommentReplyItems` list.
- `marking`: `Marking` — The `AssetComment` `Marking` if it exists.
- `currentUserPermissions`: `AssetCommentUserPermissions!` — `AssetComment` permissions of the current `User`.

## Related mutations

- [`createAssetComment`](../mutation/createAssetComment.md)
- [`reopenAssetComment`](../mutation/reopenAssetComment.md)
- [`resolveAssetComment`](../mutation/resolveAssetComment.md)

## Reach via

Example queries that can return this type from the root `Query`.

### `assets › comments`

```graphql
query AssetsComments {
  assets(ids: "…") {
    comments(limit: 25, page: 1) {
      items {
        __typename
        content
        createdAt
        creator {
          __typename
          name
          id
        }
        currentUserPermissions {
          canDelete
          canEdit
          canReply
        }
        id
        isResolved
        marking {
          __typename
          dimensions {
            height
            width
          }
          position {
            x
            y
          }
          ... on MultiPageMarking {
            page
          }
        }
        mentionedUsers {
          __typename
          name
          id
        }
        modifiedAt
        modifier {
          __typename
          name
          id
        }
        replies {
          total
          page
          limit
          hasNextPage
          items {
            id
            content
            createdAt
            modifiedAt
            creator { id }
            mentionedUsers { id }
          }
        }
      }
    }
  }
}
```

Raw: [`AssetsComments.sdl`](../examples/AssetsComments.sdl)

### `asset › comments`

```graphql
query AssetComments {
  asset(id: "…") {
    comments(limit: 25, page: 1) {
      items {
        __typename
        content
        createdAt
        creator {
          __typename
          name
          id
        }
        currentUserPermissions {
          canDelete
          canEdit
          canReply
        }
        id
        isResolved
        marking {
          __typename
          dimensions {
            height
            width
          }
          position {
            x
            y
          }
          ... on MultiPageMarking {
            page
          }
        }
        mentionedUsers {
          __typename
          name
          id
        }
        modifiedAt
        modifier {
          __typename
          name
          id
        }
        replies {
          total
          page
          limit
          hasNextPage
          items {
            id
            content
            createdAt
            modifiedAt
            creator { id }
            mentionedUsers { id }
          }
        }
      }
    }
  }
}
```

Raw: [`AssetComments.sdl`](../examples/AssetComments.sdl)
