# editComment

> Mutation in domain **Comments**

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

Edit an existing `AssetComment`. Requires `basic:write` scope to be accessible and `Asset` permission level `COMMENT`.

## Returns

`EditComment`

## Arguments

- `input`: `EditCommentInput!` — `EditComment` input argument.

## Example

```graphql
mutation EditComment {
  editComment(
    input: {
      id: "…"
      content: "…"
    }
  ) {
    __typename
    comment {
      __typename
      id
      content
      createdAt
      modifiedAt
      creator {
        __typename
        name
        id
      }
      modifier {
        __typename
        name
        id
      }
      ... on AssetComment {
        isResolved
      }
    }
  }
}
```

Raw: [`editComment.example.sdl`](editComment.example.sdl)
