mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
47 lines
806 B
GraphQL
47 lines
806 B
GraphQL
|
|
fragment commentView on Comment {
|
|
id
|
|
body
|
|
user {
|
|
id
|
|
name: displayName
|
|
}
|
|
actions {
|
|
type: action_type
|
|
count
|
|
current: current_user {
|
|
id
|
|
created_at
|
|
}
|
|
}
|
|
}
|
|
|
|
query AssetQuery($asset_url: String!) {
|
|
asset(url: $asset_url) {
|
|
id
|
|
title
|
|
url
|
|
closedAt
|
|
settings {
|
|
moderation
|
|
infoBoxEnable
|
|
infoBoxContent
|
|
closeTimeout
|
|
closedMessage
|
|
charCountEnable
|
|
charCount
|
|
requireEmailConfirmation
|
|
}
|
|
comments {
|
|
...commentView
|
|
replies {
|
|
...commentView
|
|
}
|
|
}
|
|
},
|
|
currentUser: me {
|
|
id,
|
|
displayName
|
|
}
|
|
}
|