GraphQL

0%
Coding
Theory
Quiz

    Auth & Field Level Security

    • Implement a custom @auth(role:) schema directive

      Mid
    • Field-Level Authorization: Gate Sensitive User Fields on Context Permissions

      Mid
    • Mask the creditCardNumber field on a Payment type (show only last four)

      Mid

    Schema Design & Types

    • Library API: Book → Author resolvers

      Junior
    • Implement a Product Catalog Filter with a Nested FilterInput

      Junior
    • OrderStatus Enum: Resolve, Filter, and Validate Status Updates

      Junior
    • Shopping List GraphQL Server: CRUD + Check-Off Mutation

      Mid
    • Server-Driven UI: Component Interface Resolvers

      Mid
    • Multi-Tenant Blogging Platform: Organization-Scoped Resolvers

      Senior

    Schema Design Performance & Tooling

    • Batch Author lookups with DataLoader to kill the N+1 in Book.author

      Mid
    • Implement a SearchResult union with __resolveType

      Mid
    • DataLoader batch function: return results in exact input-key order

      Mid
    • Map Postgres unique/foreign-key violations to GraphQL error codes via resolver middleware

      Mid
    • Mutation Returning a User | UserError Union

      Mid
    • Node interface with a __resolveType discriminator

      Mid
    • Custom GraphQLError Subclasses with extensions (code + HTTP status)

      Mid
    • Implement the Bookstore GraphQL Resolvers (Query, Mutation, computed & nested fields)

      Mid
    • Resolver Timing Wrapper: Log Slow Field Resolutions (>200ms) with Their Variables

      Senior
    • Tenant-Aware DataLoader Caching for Multi-Tenant Data Isolation

      Senior

    Custom Scalars & Directives

    • Implement a custom `DateTime` GraphQL scalar (serialize / parseValue / parseLiteral)

      Mid
    • Implement a custom ISO-8601 DateTime scalar

      Mid
    • Custom Email Scalar: serialize, parseValue & parseLiteral

      Mid
    • Enforce mutually-exclusive contact fields with the @oneOf input directive

      Mid
    • Custom PhoneNumber Scalar with E.164 Validation

      Mid

    Input Validation & Query Limits

    • Validate mutation inputs before they reach the resolver

      Mid
    • Query Complexity Validation Rule with @cost Directives

      Senior
    • Query Depth Limit Validation Rule (max 5 levels)

      Senior
    • Query Complexity Limiting Validation Rule (DoS protection)

      Senior

    Resolvers & Data Fetching

    • Batch ID Lookups with a Single Bulk WHERE-IN Query (DataLoader)

      Mid
    • Resolve a totalSpent field that sums a user's purchases within a time range

      Mid

    Pagination & Search

    • Offset/Limit Pagination with totalCount for a Posts Query

      Junior
    • Multi-Field Product Search with Pagination

      Mid
    • Relay Cursor Connections: Paginated Messages Query

      Senior

    Mutations & Data Writes

    • CreatePost Mutation with Generated ID

      Junior
    • Follow Mutation: update a join table and return the User with a recalculated followerCount

      Mid
    • Task scheduler: toggleTask mutation that locks tasks until dependencies finish

      Senior
    • Atomic createPost Mutation Linking Multiple Existing Tags

      Senior