Solved
Does AEM 6.5.21 allows to customize GraphQL schema or use GraphQL resolvers?
I want to validate if is it possible to customize GraphQL schemas or use GraphQL resolvers while using GraphQL API for Content Fragments in AEM 6.5.21. Right now we can fetch CF data using a persisted query and it returns all the data just like it exists in the JCR, but we would like to transform some fields before providing the response: for example, for a string multifield (String[]) that is returning data like this:
{
"data": {
"sampleCFByPath": {
"item": {
"title": "Sample CF",
"section": [
"{\"field1\":\"value 1\",\"field2\":false}"
]
}
}
}
}
We need to transform it to be a JSON array like this:
{
"data": {
"sampleCFByPath": {
"item": {
"title": "Sample CF",
"section": [
{
"field1": "value 1",
"field2": false
}
]
}
}
}
}
Thanks in advance