Filtering products depending on category - graphql

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

  1. I am running GraphQL via Strapi (a headless CMS). So I create whatever content-types I need there and then can access those fields on the client side (using urql). Not sure how I can see the schemas, but below are some queries I am using (if that helps):

query {
categorias{
data{
id
attributes{
title
slug
image{
data{
attributes{
url
}
}
}
}

  }
}

}

query {
produtos {
data {
id
attributes {
title
slug
price
description
categoria {
data{
attributes{
title
slug
}
}
}
image {
data {
attributes {
url
}
}
}
}
}
}
}

query getProduct($slug: String!) {
produtos(filters: {slug: {eq: $slug}}) {
data{
id
attributes{
title
slug
price
description
image{
data{
attributes{
url
}
}
}
}
}
}
}

Been trying to get it done with something similar to the last query, but without any luck so far.