getGraphQLPayloadDiscussion function
String
getGraphQLPayloadDiscussion(
{ - required int topicId,
})
Implementation
String getGraphQLPayloadDiscussion({required int topicId}) => r'''{
"operationName": "DiscussTopic",
"variables": {
"topicId": #topicId
},
"query": "query DiscussTopic($topicId: Int!) {\n topic(id: $topicId) {\n id\n viewCount\n topLevelCommentCount\n subscribed\n title\n pinned\n tags\n hideFromTrending\n post {\n ...DiscussPost\n __typename\n }\n __typename\n }\n}\n\nfragment DiscussPost on PostNode {\n id\n voteCount\n voteStatus\n content\n updationDate\n creationDate\n status\n isHidden\n coinRewards {\n ...CoinReward\n __typename\n }\n author {\n isDiscussAdmin\n isDiscussStaff\n username\n nameColor\n activeBadge {\n displayName\n icon\n __typename\n }\n profile {\n userAvatar\n reputation\n __typename\n }\n isActive\n __typename\n }\n authorIsModerator\n isOwnPost\n __typename\n}\n\nfragment CoinReward on ScoreNode {\n id\n score\n description\n date\n __typename\n}\n"
}'''
.replaceAll('#topicId', topicId.toString());