What does the root type “Query” represent in GraphQL?

What does the root type “Query” represent in GraphQL?

a) It defines the write operations in GraphQL
b) It represents the read operations to fetch data
c) It is used for real-time subscriptions
d) It handles error responses

Answer:

b) It represents the read operations to fetch data

Explanation:

The “Query” root type in GraphQL is used to fetch data (read operations) from the server.

Reference:

GraphQL Quiz – MCQ – Multiple Choice Questions

Scroll to Top