AEM 6.5.12 | Content Fragment model QueryType stopped working recently
One of my persistent queries recently stopped working in the lower environment(Dev) while it is still working in the higher(Production) environment. The content fragment model name is content-json and the title is Content JSON. The QueryType not recognized now is contentJSONByPath which was working fine earlier in Development environment and still working fine in the production environment. The error message shows as Validation error of type FieldUndefined: Field 'contentJSONByPath' in type 'QueryType' is undefined @ 'contentJSONByPath'".
Persistent query throwing error:
query contentJSONByPath($path:String!)
{
contentJSONByPath(_path: $path)
{__typename,
item{__typename
content
}
}
}
While debugging the issue it seems the query type is changed to contentJsonByPath while still showing contentJSONByPath in Content Fragment Model GraphQL Tab's Single Query Field Name. I also found that the Apache Jackrabbit Oak version is changed to 1.22.14 in the Development environment whereas, in the Production environment, it is 1.22.11. Rest everything like AEM version etc looking same.
Wondering if someone faced this issue and know how to fix it? Thanks in advance.