GraphQL Filter rules are not coming in the SQL query in the backend.
I am trying to query a content fragment inside JCR , which matches a property value. Can someone guide if this query is correct?
When I run this query in GraphQL tool, it gives node traversal and in the SQL query, I cannot see, it is picking the properties i gave. Node traversal may be due to lack of indexing the properties. But the query is not picking the filter rules I gave in my graphQL query.
JCR Query from logs:
8.142.194 [1671637031153] POST /content/_cq_graphql/global/endpoint.json HTTP/1.1] org.apache.jackrabbit.oak.plugins.index.search.spi.query.FulltextIndex$FulltextPathCursor Index-Traversed 100000 nodes with filter Filter(query=SELECT asset.* FROM [dam:Asset] AS asset WHERE ISDESCENDANTNODE(asset, '/content/dam') AND asset.[jcr:content/contentFragment] = CAST('true' AS BOOLEAN) AND asset.[jcr:content/data/cq:model] = '/conf/test-inc/settings/dam/cfm/models/product-model' ORDER BY asset.[jcr:path], path=/content/dam//*, property=[jcr:content/contentFragment=[true], jcr:content/data/cq:model=[/conf/test-inc/settings/dam/cfm/models/product-model]])
GraphQL Query used:
query{
productModelList(filter:{
scancode:{
_expressions:[
{
value: "10164436768"
_operator: EQUALS
}
]
}
}){
items{
articleId
}
}}
Can someone advise what is wrong in this query?
