Filter Products By Category
In this episode I’m going to show you how to create a filter for our products using Directus and Next.js.
Of course we are going to filter those products by category since that is the only parameter that we have for the products at the moment.
So you are going to learn how to use Directus to filter your items, how to pass parameters to your GraphQL query and how to handle filtering with react-query.