docs: add GQLoom to graphql.mdx
Hello!
I am the maintainer of GQLoom.
GQLoom is a new GraphQL Schema producer. Unlike traditional Schema Builders, GQLoom doesn't have a built-in Builder API. Instead, it leverages popular schema libraries like Zod, Valibot, Yup, Effect Schema.
GQLoom provides first-class support for Prisma and supports creating a complete GraphQL API service from Prisma using just a few lines of code through [Resolver Factory].
A simple example is as follows:
import { resolver, query, weave } from "@gqloom/core"
import { ZodWeaver } from "@gqloom/zod"
import { zod } from "zod"
const helloResolver = resolver({
hello: query(z.string())
.input({ name: z.string().nullish() })
.resolve(({ name }) => `Hello, ${name ?? "World"}!`),
})
export const schema = weave(ZodWeaver, helloResolver)
Or using valibot:
import { resolver, query, weave } from "@gqloom/core"
import { ValibotWeaver } from "@gqloom/valibot"
import * as v from "valibot"
const helloResolver = resolver({
hello: query(v.string())
.input({ name: v.nullish(v.string(), "World") })
.resolve(({ name }) => `Hello, ${name}!`),
})
export const schema = weave(ValibotWeaver, helloResolver)
This PR adds GQLoom to 02-graphql.mdx And there is a complete Prisma + GQLoom example (still in PR).
If you have any questions or thoughts about GQLoom, please let me know!
Summary by CodeRabbit
- Documentation
- Added documentation for a new code-first GraphQL tool option in the tools reference table
- Added a new GraphQL API example demonstrating an implementation using GraphQL Yoga
✏️ Tip: You can customize this high-level summary in your review settings.
Walkthrough
The change updates the GraphQL documentation by adding a new code-first GraphQL tool (@gqloom/core) and its corresponding example entry to the tools and examples tables on the GraphQL overview page.
Changes
| Cohort / File(s) | Summary |
|---|---|
GraphQL Documentation Updates content/200-orm/050-overview/300-prisma-in-your-stack/02-graphql.mdx |
Added @gqloom/core as a new code-first GraphQL tool entry to the tools table; added GraphQL API (GQLoom) example using GraphQL Yoga with @gqloom/core to the examples table |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title 'docs: add GQLoom to graphql.mdx' directly and clearly describes the main change—adding GQLoom documentation to a specific GraphQL file. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.