0.3.0 • Published 9 months ago

@gqloom/core v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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.

The design of GQLoom is inspired by tRPC, TypeGraphQL, Pothos.

Features

  • 🚀 GraphQL: flexible and efficient, reducing redundant data transfers;
  • 🔒 Robust type safety: enjoy intelligent hints at development time to detect potential problems at compile time;
  • 🔋 Ready to go: middleware, contexts, subscriptions, federated graphs are ready to go;
  • 🔮 No extra magic: no decorators, no metadata and reflection, no code generation, you just need JavaScript/TypeScript;
  • 🧩 Familiar schema libraries: use the schema libraries you already know (Zod, Yup, Valibot) to build GraphQL Schema and validate inputs;
  • 🧑‍💻 Develop happily: highly readable and semantic APIs designed to keep your code tidy;

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)

Read Introduction to learn more about GQLoom.

Getting Started

See Getting Started to learn how to use GQLoom.

0.3.0

9 months ago

0.2.1

10 months ago

0.2.2

10 months ago

0.2.0

10 months ago