getCommentReplies method

Future<List<Comment>> getCommentReplies({
  1. required int commentId,
})

Implementation

Future<List<Comment>> getCommentReplies({required int commentId}) async {
  final data = await makeGraphQLRequest(getGraphQLPayloadCommentReplies(commentId: commentId));
  final list = data['data']['commentReplies'] as List;
  return list.cast<Map<String, dynamic>>().map(Comment.fromJson).toList();
}