graphql-annotations

JSON →
library 0.0.3 ·javascript
verified Jun 7, 2026

Utility library for parsing and stripping annotated metadata from GraphQL schema descriptions (v0.0.3). Allows extracting custom annotations like @db.length or @db.unique from type/field descriptions, returning structured objects. Supports multiple namespaces and JSON-like values. Lightweight, no runtime dependencies, ships TypeScript definitions. Created by Guillaume Chau (Akryum), maintainer of vue-apollo and GraphQL tools. Suitable for code generation or ORM mapping where directives are not available.