1 unstable release
| 0.1.0 | Dec 21, 2025 |
|---|
#27 in #data-loader
Used in 3 crates
20KB
526 lines
protograph-core
Core types and SDL parsing for protograph.
This crate provides:
- GraphQL SDL parser with custom directive support
- AST types (
ProtographSchema,EntityType,Field,Relationship) - Schema validation
Usage
This is an internal crate. Most users should use protograph-build instead.
use protograph_core::{parse_schema_file, validate_schema};
let schema = parse_schema_file(sdl_content)?;
validate_schema(&schema)?;
License
MIT OR Apache-2.0
Dependencies
~3–4.5MB
~81K SLoC