*WARN* PersistedQueryServlet Cannot recognize GraphQL query type:
We are getting below WARN logs, Although it looks like the query executes successfully and returns data
GarphiQL window works fine too with returning the proper response.
On checking the jar code for PersistedQueryServlet.java, it seems this WARN message is displayed may be because of the Query Syntax, since the code looks for pattern "List{items{" to check if a Query is of a List. [ Please refer below image], whereas my GraphiQL query has the pattern:
"generalMessageList(filter: {code: {_expressions: [{value: $code}]}},_locale:$locale) {
__typename
items {
__typename....
"
i.e "List(filter"
Can you please share what , if any, corrections should be made for the Query syntax ?
boolean isQueryList(String query) {
return StringUtils.deleteWhitespace(query).contains("List{items{");
}

*WARN* GET /graphql/execute.json/<endpoint_name>/Message;code=still_want_to_signup;locale=en; HTTP/1.1] com.adobe.aem.graphql.impl.servlet.PersistedQueryServlet Cannot recognize GraphQL query type: {
"data": {
"generalMessageList": {
"__typename": "GeneralMessageModelResults",
"items": [
{
"__typename": "GeneralMessageModel",
"_path": "/content/dam/abc/web/en/messages/general/still_want_to_signup",
"code": "still_want_to_signup",
"message": {
"__typename": "MultiFormatString",
"html": "<p>Do you still want to sign up?</p>\n",
"markdown": "Do you still want to sign up ?\n\n ",
"plaintext": "Do you still want to sign up?",
"json": [
{
"nodeType": "paragraph",
"content": [
{
"nodeType": "text",
"value": "Do you still want to sign up?"
}
]
}
]
},
"htmlDecorator": null
}
]
}
}
}