GraphQL for Data
Query exactly the data you need from APIs; design schemas and resolvers that sit over databases.
Start the free previewLabs run in your browser. No installs.
What you will be able to do
- Write queries, variables and fragments
- Design a schema
- Build resolvers over SQL and MongoDB
- Secure and optimise GraphQL APIs
Tools
- GraphQL
- Apollo
- Hasura
- PostGraphile
- GraphiQL
Syllabus — 4 modules
Why GraphQL
GraphQL lets clients request exactly the fields they need in one round trip, against a typed schema.
REST vs GraphQL · Schema, types and fields · Queries, mutations, subscriptions · Introspection and GraphiQL
Querying
Arguments filter, variables parameterise, aliases rename and fragments reuse field sets.
Arguments · Variables · Aliases · Fragments · Directives @include, @skip · Pagination: offset and cursor
Schema design and resolvers
Resolvers fetch each field’s data. Watch the N+1 problem and batch with DataLoader.
SDL: types, inputs, enums, interfaces · Resolvers and context · N+1 problem and DataLoader · Mutations and validation
GraphQL over databases
Tools like Hasura and PostGraphile generate GraphQL APIs from database schemas.
Auto-generated APIs · Permissions per role · Federation overview · Security: depth limits, cost analysis, persisted queries
How you are assessed
Every module ends with a check question. The final exam has 15 theory questions and 3 hands-on tasks solved in the tool this course teaches; pass at 70% for a certificate anyone can verify online.
Where it sits in the Databases track
- SQL Fundamentals (Any Database) Beginner
- SQL with MySQL Beginner → Advanced
- MongoDB Beginner → Advanced
- GraphQL for Data (this course) Intermediate
- Oracle SQL & PL/SQL Intermediate
- Graph Databases with Neo4j Intermediate
- Microsoft SQL Server & T-SQL Intermediate → Advanced
- PostgreSQL Intermediate → Advanced
- NoSQL: Redis, Cassandra, DynamoDB & Elasticsearch Intermediate → Advanced
- Database Management & Administration Advanced
Part of these career paths
Questions and answers
- How long does the GraphQL for Data course take?
- About 14 hours across 4 modules, at your own pace. At five hours a week most learners finish in 3 weeks.
- Is GraphQL for Data free?
- The first module is a free preview. The full course is part of Pro, or a friend's invite can unlock its whole track for up to three months using referral points.
- Do I get a certificate for GraphQL for Data?
- Yes. Pass the final exam (15 theory questions and 3 hands-on tasks in 40 minutes, pass mark 70%) and you get a certificate with an ID that anyone can verify online.
- What should I know before starting GraphQL for Data?
- It follows MongoDB in the Databases track. If Databases is new to you, start with SQL Fundamentals (Any Database).
- What will I be able to do after GraphQL for Data?
- Write queries, variables and fragments; Design a schema; Build resolvers over SQL and MongoDB.