@gqloom/valibot
v0.6.1
Published
Create GraphQL schema and resolvers easily using Valibot!
Downloads
203
Maintainers
Readme
GQLoom
GQLoom is a GraphQL weaver for TypeScript/JavaScript that weaves GraphQL Schema using Valibot, Zod, or Yup, and supports sophisticated type inference to provide the best development experience.
@gqloom/valibot
This package provides GQLoom integration with Valibot to weave Valibot Schema to GraphQL Schema.
Hello World
import { resolver, query, ValibotWeaver } from "@gqloom/valibot"
import * as v from "valibot"
const helloResolver = resolver({
hello: query(v.string(), () => "world"),
})
export const schema = ValibotWeaver.weave(helloResolver)
Read more at GQLoom Document.