getGraphQLPayloadProblemsByTopic function

String getGraphQLPayloadProblemsByTopic({
  1. required String topicTag,
})

Implementation

String getGraphQLPayloadProblemsByTopic({required String topicTag}) => r'''{
		"operationName": "getTopicTag",
		"variables": {
			"slug": "#topicTag"
		},
		"query": "query getTopicTag($slug: String!) {\n  topicTag(slug: $slug) {\n    name\n    slug\n    questions {#problemCommonFields     companyTags {\n        name\n        slug\n        }\n      }\n    frequencies\n      }\n  favoritesLists {\n    publicFavorites {\n      ...favoriteFields\n          }\n    privateFavorites {\n      ...favoriteFields\n          }\n      }\n}\n\nfragment favoriteFields on FavoriteNode {\n  idHash\n  id\n  name\n  isPublicFavorite\n  viewCount\n  creator\n  isWatched\n  questions {\n    questionId\n    title\n    titleSlug\n      }\n  }\n"
	}'''
    .replaceAll('#topicTag', topicTag)
    .replaceAll('#problemCommonFields', problemCommonFields);