Weave GraphQL schema and resolvers using Valibot, Zod or Yup
MIT License
English | 简体中文
GQLoom is a GraphQL weaver for TypeScript/JavaScript that weaves GraphQL Schema and Resolvers using Valibot, Zod, or Yup, and supports sophisticated type inference to provide the best development experience.
The design of GQLoom is inspired by tRPC, TypeGraphQL, Pothos.
import { resolver, query, weave } from "@gqloom/valibot"
import * as v from "valibot"
const HelloResolver = resolver({
hello: query(v.string(), () => "world"),
})
export const schema = weave(HelloResolver)
Read Introduction to learn more about GQLoom.
See Getting Started to learn how to use GQLoom.
GQLoom Core: GraphQL Loom Core Features;
GQLoom Federation: Provides GQLoom support for Apollo Federation;
GQLoom Mikro ORM: GQLoom integration with Mikro ORM;
GQLoom Valibot: GQLoom integration with Valibot;
GQLoom Yup: GQLoom integration with Yup;
GQLoom Zod: GQLoom integration with Zod;