How can we generate below response structure in graphql
```
{
"results":
{
"itemNames": [
"prod1 - Name",
"prod2 - Name",
"prod3 - Name",
"prod4 - Name"
]
}
}
```
What is the schema.graphqls structure in magento2.4.4?
asked Feb 14, 2023 at 7:18
Radha Krishna
5366 silver badges25 bronze badges
1 Answer 1
What entity do you wish to extend with custom data? You can define new fields via schema.graphqls. You will have to add new definitions here and potentially create new resolvers for these fields.
There's quite a detailed guide provided by Magento here:
answered Feb 14, 2023 at 10:33
Liam Toohey
4923 silver badges15 bronze badges
default