Skip to content

Instantly share code, notes, and snippets.

@nuoxoxo
Last active January 26, 2024 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuoxoxo/962aab8f0a5dea2dcbc990033ed05bd3 to your computer and use it in GitHub Desktop.
Save nuoxoxo/962aab8f0a5dea2dcbc990033ed05bd3 to your computer and use it in GitHub Desktop.
GraphQL idea(s)
# GET leetcode.com/graphql
query getDailyChallenge {
activeDailyCodingChallengeQuestion {
date
link
question {
questionId
title
titleSlug
difficulty
categoryTitle
likes
dislikes
topicTags {
name
}
hints
similarQuestionList {
questionId
title
titleSlug
difficulty
categoryTitle
topicTags{
name
}
}
}
}
}

👆 Default date is : Today

👆 set a specific date for the query

# since lc disabled its api introspection feature
# we work with existing documented queries found online
# eg. heres how you get your own info. lets rock
query getUser {
matchedUser(username: "nuoxoxo") {
username
submitStats: submitStatsGlobal {
acSubmissionNum {
difficulty
count
submissions
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment