@eleven-am/golem
v0.5.2
Published
Golem: feed it a Prisma schema, get a full authorized GraphQL API in one NestJS module
Maintainers
Readme
@eleven-am/golem
The NestJS module for Golem. Feed it a Prisma schema and get a complete GraphQL API: queries, mutations with nested writes, live subscriptions, typed hooks, custom operations, and a CASL authorization kernel enforcing row, field, and relation policy on GraphQL and forContext(ctx) calls. Plain generated-client calls are explicit system-level Prisma access and do not run caller policy or Golem hooks.
npm i @eleven-am/golem @eleven-am/golem-core
npm i -D @eleven-am/golem-generatorSee the full guide for the quickstart, configuration reference, and authorization model.
Since 0.4, computed fields are real Nest field resolvers. Import the typed ComputedField helper from the generated Golem module, use @Parent()/@Context()/@Args(), and pass golem.fieldResolverEnhancers to GraphQLModule. This enables ordinary Nest pipes, guards, interceptors, filters, and request-scoped providers. See the root migration guide for the positional-parent breaking change and the DataLoader pattern.
