mirror of
https://github.com/wassname/talk.git
synced 2026-08-10 12:41:02 +08:00
24 lines
413 B
GraphQL
24 lines
413 B
GraphQL
|
|
fragment commentView on Comment {
|
|
id
|
|
body
|
|
status
|
|
user {
|
|
name: displayName
|
|
}
|
|
actions {
|
|
type: action_type
|
|
count
|
|
current: current_user {
|
|
id
|
|
created_at
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation CreateComment ($asset_id: ID!, $parent_id: ID, $body: String!) {
|
|
createComment(asset_id:$asset_id, parent_id:$parent_id, body:$body) {
|
|
...commentView
|
|
}
|
|
}
|