GraphQL Nullability Contract Repair

    by Mariusz Wrzeszczynski

    1

    Repair GraphQL nullability drift across schemas, resolvers, loaders, ORM models, generated types, clients, caches, tests, and docs.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Our Project.owner field is non-null in the schema, but the loader returns null for deleted users, causing the whole project object to disappear. Audit the code and suggest a repair.

    Your agent does

    Decision: CROSS-LAYER DRIFT FOUND. I have identified a contract break where the 'Project.owner' resolver returns null for non-null SDL. I prepared a patch to introduce a typed loader result and a candidate schema change to make 'owner' nullable, preventing parent object bubbling.

    What you get

    Align SDL promises with actual database and ORM nullability.Fix loader cardinality bugs that cause missing items to break lists.Separate internal resolver failures from expected data absence.Identify and remove unsafe non-null assertions in generated client code.

    About this skill

    The problem

    GraphQL schemas often promise non-null values that the underlying database, resolvers, or loaders cannot actually guarantee. This drift leads to runtime errors, silent data bubbling that nulls out entire parent objects, and brittle client-side assertions that crash when data is missing or deleted.

    What it does

    • Traces field nullability from database columns through ORMs, loaders, and resolvers to the final SDL.
    • Identifies list-container and item-nullability mismatches that cause entire arrays to fail when one item is missing.
    • Detects "catch-and-null" resolver patterns that hide operational failures behind legitimate absence.
    • Repairs loaders to ensure they preserve key order and cardinality instead of silently dropping missing records.
    • Generates safe repository patches for input presence, subscription payloads, and normalized cache policies.

    Why this beats prompting it yourself

    Manual review usually misses the propagation path where a single non-null violation bubbles up the tree. This skill systematically audits the entire chain from persistence to generated client types, ensuring that a fix in the schema is backed by real resolver logic and test fixtures.

    Use cases

    • Fixing non-null fields that are actually nullable in legacy database rows.
    • Resolving loader bugs where missing keys cause array length mismatches.
    • Differentiating between omitted input fields and explicit nulls in mutations.
    • Updating stale generated types and removing unsafe non-null assertions in UI code.

    Known limitations

    Does not access live production APIs or databases. It cannot make product-level decisions on whether a field should be nullable, but it identifies where a decision is required.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    Mariusz Wrzeszczynski
    Mariusz Wrzeszczynski

    109 skills on Agensi

    Frequently Asked Questions

    Popular in Testing & QA