mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 06:52:24 +08:00
42 lines
968 B
GraphQL
42 lines
968 B
GraphQL
#import "../fragments/commentView.graphql"
|
|
|
|
query AssetQuery($asset_id: ID, $asset_url: String!, $comment_id: ID!, $has_comment: Boolean!) {
|
|
comment(id: $comment_id) @include(if: $has_comment) {
|
|
...commentView
|
|
parent {
|
|
...commentView
|
|
replies {
|
|
...commentView
|
|
}
|
|
}
|
|
}
|
|
asset(id: $asset_id, url: $asset_url) {
|
|
id
|
|
title
|
|
url
|
|
closedAt
|
|
created_at
|
|
settings {
|
|
moderation
|
|
infoBoxEnable
|
|
infoBoxContent
|
|
questionBoxEnable
|
|
questionBoxContent
|
|
closeTimeout
|
|
closedMessage
|
|
charCountEnable
|
|
charCount
|
|
requireEmailConfirmation
|
|
}
|
|
commentCount
|
|
totalCommentCount
|
|
comments(limit: 10) {
|
|
...commentView
|
|
replyCount
|
|
replies(limit: 3) {
|
|
...commentView
|
|
}
|
|
}
|
|
}
|
|
}
|