Skip to content

docs: add usage with GQLoom#4311

Open
xcfox wants to merge 3 commits into
graphql-hive:mainfrom
xcfox:gqloom
Open

docs: add usage with GQLoom#4311
xcfox wants to merge 3 commits into
graphql-hive:mainfrom
xcfox:gqloom

Conversation

@xcfox
Copy link
Copy Markdown

@xcfox xcfox commented Dec 13, 2025

Hello!

I am the maintainer of GQLoom.

GQLoom is a new GraphQL Schema producer. Unlike traditional Schema Builders, GQLoom doesn't have a built-in Builder API. Instead, it leverages popular schema libraries like Zod, Valibot, Yup, Effect Schema, or ORM entities/models like Prisma, Drizzle, MikroORM.

GQLoom provides first-class type safety, minimal boilerplate code, ergonomic API design, and an easy learning curve.

A simple example is as follows:

import { resolver, query, weave } from "@gqloom/core"
import { ZodWeaver } from "@gqloom/zod"
import { zod } from "zod"

const helloResolver = resolver({
  hello: query(z.string())
    .input({ name: z.string().nullish() })
    .resolve(({ name }) => `Hello, ${name ?? "World"}!`),
})

export const schema = weave(ZodWeaver, helloResolver)

Or using valibot:

import { resolver, query, weave } from "@gqloom/core"
import { ValibotWeaver } from "@gqloom/valibot"
import * as v from "valibot"

const helloResolver = resolver({
  hello: query(v.string())
    .input({ name: v.nullish(v.string(), "World") })
    .resolve(({ name }) => `Hello, ${name}!`),
})

export const schema = weave(ValibotWeaver, helloResolver)

This PR adds documentation for integrating Yoga with GQLoom.
And it includes two integration tests: GQLoom with Zod and GQLoom with Valibot.

If you have any questions or ideas about GQLoom, please let me know!

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Dec 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@xcfox xcfox changed the title Docs: add usage with GQLoom docs: add usage with GQLoom Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant