@gqloom/valibot
TypeScript icon, indicating that this package has built-in type declarations

0.6.1 • Public • Published

GQLoom Logo

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.

Package Sidebar

Install

npm i @gqloom/valibot

Homepage

gqloom.dev/

Weekly Downloads

16

Version

0.6.1

License

MIT

Unpacked Size

44.7 kB

Total Files

6

Last publish

Collaborators

  • xcfox