fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
6.33k stars 204 forks source link

Docs: add GQLoom to ecosystem #855

Closed xcfox closed 1 month ago

xcfox commented 1 month ago

I'm excited to introduce you to GQLoom.

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.

Hello World

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)
pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

pnpm add https://pkg.pr.new/valibot@855

commit: b3fa7c7

fabian-hiller commented 1 month ago

Thank you for supporting Valibot! 🙏