#graphql #protobuf #data-loader #grpc #codegen

build protograph-core

Core types and SDL parsing for protograph

1 unstable release

0.1.0 Dec 21, 2025

#2 in #graphql


Used in 3 crates

MIT/Apache

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

~2.6–4MB
~72K SLoC