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?

asked Feb 14, 2023 at 7:18

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:

answered Feb 14, 2023 at 10:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.