Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use QuestionListFilterInput #1

Open
PoisWu opened this issue Dec 9, 2023 · 3 comments
Open

How to use QuestionListFilterInput #1

PoisWu opened this issue Dec 9, 2023 · 3 comments

Comments

@PoisWu
Copy link

PoisWu commented Dec 9, 2023

Hi,

I can find any documentation on the field QuestionListFilter of the query :query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput)

May somebody can explain how can I use it? Eg: What's the properties it contains

@akarsh1995
Copy link
Owner

What functionality are you trying to achieve?

@PoisWu
Copy link
Author

PoisWu commented Dec 11, 2023

Hi, thank you for replying.

I'm wondering whether I can get

  • the results with reverse order of ID number
  • the question with specific id number. Eg: number 10. Regular expressions matching.

@akarsh1995
Copy link
Owner

akarsh1995 commented Dec 18, 2023

Sorry for the delayed response

Suppose if you'd like to get the question with id 10 then you could do

{
  "categorySlug": "",
  "skip": 9,
  "limit": 9,
  "filters": {}
}

You can also filter out the questions based on the difficulty using the following set of variables

{
  "categorySlug": "",
  "skip": 1,
  "limit": 50,
  "filters": {
    "difficulty": "MEDIUM"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants