You cant use filter in graphql query in strapi .
My query is the bellow . I am
{
products(where: { productAttributes: { id_in: [“8”, “2”, “3”] } }) {
name
productAttributes {
id
}
}
}
I am getting this result
{
“data”: {
“products”: [
{
“name”: “GPS”,
“productAttributes”: [
{
“id”: “8”
}
]
},
{
“name”: “GPS ναυτικό”,
“productAttributes”: [
{
“id”: “2”
},
{
“id”: “3”
},
{
“id”: “8”
}
]
}
]
}
}
I want to keep the second record only