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 ;
let schema = parse_schema_file?;
validate_schema?;
License
MIT OR Apache-2.0