-
Hello, I'm really new to Ariadne and GraphQL in general. I was following this tutorial for filtering data published from. This is my goal I want to achieve >> show only data that contain "custom input" in "published from" But it has problem with my arguments. It always say that "unknown argument" event tho, I already implemented in. My CODE query = QueryType()
` Have a great day :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
To filter data, implement filtering logic in your resolvers. Assuming you are using Django: def resolve_trailes(*_, published_from=None):
queryset = Trailer.objects.all()
if published_from:
queryset = queryset.filter(published_from__icontains=published_from)
return queryset |
Beta Was this translation helpful? Give feedback.
-
Can you share your GraphQL schema? |
Beta Was this translation helpful? Give feedback.
To filter data, implement filtering logic in your resolvers. Assuming you are using Django: