I am currently build microservice using FastAPI + Strawberry GraphQL. I want to expose filters for the models with and/or condition. For example,
{
Student(where:{and[{AgeGt: 15},{PercentageLt: 75}]}) {
edges {
node {
Name
Age
Percentage
}
}
}
Is this possible? Any reference or example would greatly help.
In Strawberry you can use input types to define arguments for your queries
Here's an example what should help you with definining filters using strawberry:
See this on the Strawberry Playground