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.
This package provides GQLoom integration with Mikro ORM:
- Use MikroORM's Entity Schema as the silk thread;
- Weaving the silk into MikroORM's Entity Schema;
- Generating GraphQL operations from MikroORM's Entity Schema;
Read more at GQLoom Document.