Skip to content

How to replace data with results in magento2.x graphql response?

I have created the custom graphql in magento 2.4.4 and working fine.Response looking like below

 {
  "data": {
    "showDetails": []
  }
}



but i need the response structure like below

    {
  "results": {
    "showDetails": []
  }
}

How can we replace "data" with "results" in response.?