GraphQL Vocabulary
5 exercises — Query/Mutation/Subscription, the N+1 problem and DataLoader, non-null ! types, fragments vs inline fragments, and schema-first vs code-first design.
Query
Fetches data. No server-side effects. Can be executed in parallel by the server.
• Transport: typically HTTP GET or POST
• Analogous to: REST GET
• Example:
query { user(id: "1") { name, email } }Mutation
Changes server state. Executed serially (mutations in a document are run one at a time).
• Transport: HTTP POST
• Analogous to: REST POST/PUT/PATCH/DELETE
• Example:
mutation { createPost(input: {title: "Hello"}) { id, title } }• Mutations should return the modified object so clients can update their cache
Subscription
Establishes a persistent connection for real-time push updates.
• Transport: WebSocket (most common), Server-Sent Events, or long polling
• Example:
subscription { messageAdded(channelId: "42") { text, author { name } } }• Use cases: chat messages, live scores, stock prices, CI/CD pipeline status
• Subscriptions require additional server infrastructure (subscriptions manager, pub/sub broker like Redis)
Vocabulary:
• operation — a named piece of GraphQL work (query / mutation / subscription)
• document — a GraphQL request body containing one or more operations
• operation name — optional name for a query, useful in logging and Apollo DevTools
• variable — parameterized input to an operation, sent separately from the query string
• persisted query — pre-stored query on the server identified by hash, reducing request payload size
Frequently Asked Questions
What does the "GraphQL Vocabulary" vocabulary exercise cover?
This exercise tests real IT vocabulary related to graphql vocabulary through 10 multiple-choice questions, each built from realistic workplace sentences rather than abstract definitions.
Is this vocabulary exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 10 questions. Each one shows a real-world sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question, and a full results screen at the end.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Are these vocabulary exercises connected to other topics?
Yes — browse the full vocabulary exercises hub to find related modules covering adjacent IT topics and roles.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more vocabulary exercises?
Browse the full Vocabulary exercises hub for hundreds of modules covering Agile, DevOps, security, databases, architecture, and more — organised by IT role and skill.