getDiscussions method
Implementation
Future<DiscussionList> getDiscussions({
List<String> categories = const [],
List<String> tags = const [],
String? orderBy,
String? searchQuery,
required int offset,
}) async {
final data = await makeGraphQLRequest(getGraphQLPayloadDiscussionList(
offset: offset,
tags: tags,
categories: categories,
orderBy: orderBy,
searchQuery: searchQuery,
));
return DiscussionList.fromJson(data['data']['categoryTopicList']);
}