[Essentials] - Automated GraphQL API

  • Automatic GraphQL API → From linking Zod Input / Output schemas to resolver logic

    • Creates ‘schema.graphql’ type & input defs from linked resolver zod schemas

    • Automatically collects and links resolvers to their i/o schemas (👇)

      • Builds an executable schema from them

    • Sets up an `/api/graphql` endpoint using the Executable schema

  • Fetchers automatically build their graphql query string from schemas as well

    • Uses the Zod input & output schemas (DataBridge) as Single Source of Truth

    • Automatically validates inputs → Executes the linkes resolver logic

  • Basically, MOST of the GraphQL benefits without ANY of the hassle

    • ✅ Strictly typed API contract between front-end & back-end

    • ✅ Auto-documented API layer (using zod descriptions, etc.)

    • 🙌 Never manually maintain graphql defs

    • 🙌 Never manually write query definitions

    • 🙌 Nothing can / will ever get out of sync this way

  • More info: https://fullproduct.dev/docs/data-resolvers

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
💡

Features / Fixes

Date

7 months ago

Author

Thorr Stevens

Subscribe to post

Get notified by email when there are changes.