What is the format of a GraphQL response?

What is the format of a GraphQL response?

a) XML
b) JSON
c) Plain text
d) YAML

Answer:

b) JSON

Explanation:

GraphQL responses are returned in JSON format, which includes both the data requested and any errors encountered during execution.

Reference:

GraphQL Quiz – MCQ – Multiple Choice Questions

Scroll to Top