A GraphQL ACL (Access Control List) transpiler that generates permission-based GraphQL schemas. Version 1.0.0 is the latest stable release. It transforms declarative ACL rules into GraphQL directives and resolvers, enabling fine-grained field-level access control without modifying existing schema definitions. Differentiates from other auth libraries by focusing on ACL-to-GraphQL transpilation rather than middleware-based enforcement.
npm install acl-graphqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an ACL-transpiled GraphQL schema from type definitions and rules, outputting schema with directives and authorization resolvers.
Update instantiation to use options object: new AclGraphql({ typeDefs, rules })Use flat dot notation for all field paths
Replace 'permissions' with 'fields' in rule definitions
Use ES module import syntax: import { AclGraphql } from 'acl-graphql'Pass typeDefs in options object: new AclGraphql({ typeDefs, rules })Verify field path exists in schema definition