juniorGraphQL
What is a Query in GraphQL?
Updated Apr 28, 2026
Short answer
A Query is a GraphQL operation used to fetch or read data from the server, analogous to a GET request in REST.
Deep explanation
Queries are executed in parallel by the GraphQL engine. They describe a hierarchical set of fields, and the response perfectly mirrors the query's structure.
Real-world example
Fetching a list of products to display on an e-commerce catalog page.
Common mistakes
- Using a Query operation to modify data. While technically possible if the resolver is written poorly, it violates GraphQL conventions.
Follow-up questions
- Are queries executed sequentially or in parallel?