Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1.68 KB

README.md

File metadata and controls

24 lines (14 loc) · 1.68 KB

GQLoom Logo

GQLoom

GQLoom is a Code First GraphQL Schema Loom used to weave runtime types in the TypeScript/JavaScript ecosystem into a GraphQL Schema.

Runtime validation libraries such as Zod, Valibot, and Yup have been widely used in backend application development. Meanwhile, when using ORM libraries like Prisma, MikroORM, and Drizzle, we also pre - define database table structures or entity models that contain runtime types. The responsibility of GQLoom is to weave these runtime types into a GraphQL Schema.

When developing backend applications with GQLoom, you only need to write types using the Schema libraries you're familiar with. Modern Schema libraries will infer TypeScript types for you, and GQLoom will weave GraphQL types for you. In addition, the resolver factory of GQLoom can create CRUD interfaces for Prisma, MikroORM, and Drizzle, and supports custom input and adding middleware.

Prisma

Prisma is a next-generation Node.js and TypeScript ORM that unlocks a new level of developer experience when working with databases thanks to its intuitive data model, automated migrations, type-safety & auto-completion.

@gqloom/prisma

This package provides GQLoom integration with Prisma:

  • Weave Prisma model into a GraphQL Schema;
  • Support quickly creating CRUD interfaces from Prisma using the resolver factory;

Read more at GQLoom Document.