protograph-core 0.1.0

Core types and SDL parsing for protograph
Documentation

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