0

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?

1 Answer 1

0

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:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.