← All tutorials

Skill Zuno · skillzunos.com · Fullstack

GraphQL tutorial

Learn GraphQL on Skill Zuno. This GraphQL tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical GraphQL problems on skillzunos.com.

Open GraphQL on Skill Zuno

Also see the GraphQL interview questions.

GraphQL is a query language and runtime for APIs. Clients ask for exactly the fields they need in one request, and a strongly typed schema describes everything the API offers. GraphQL interviews cover schemas and types, queries, mutations and subscriptions, resolvers, the N+1 problem, caching and security.

GraphQL topics covered

  • Schema definition language and types — Describing an API with object types, scalars, enums, inputs and interfaces.
  • Queries, mutations and subscriptions — Reading data, changing it, and receiving real-time updates.
  • Resolvers and the resolver chain — How the server resolves each field, and what parent and context provide.
  • Variables, fragments and directives — Writing reusable, parameterised queries and including fields conditionally.
  • The N+1 problem and DataLoader — Why naive resolvers run too many queries, and how batching fixes it.
  • Pagination with cursors and connections — Paginating large lists with the Relay connection model.
  • Errors, authentication and authorisation — Returning partial errors, and checking permissions in resolvers.
  • Caching, query depth limits and persisted queries — Client-side caching, and protecting the server from expensive queries.

What you can learn

  • GraphQL tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside GraphQL on skillzunos.com

More Fullstack tutorials

All tutorials