Grapher

Grapher is a helper for generating client-side GraphQL from models written in Dart!

Usage

See example project

Also see doc of annotation project

Add dependencies:

dependencies:
    grapher_annotation: ^0.5.0

dev_dependencies:
    grapher_builder: ^0.5.0

Create or modify build.yaml (optional for validation with schema)

targets:
  $default:
    builders:
      grapher_builder:
        options:
          schemaFolder: "./schema" # Path with graphQL files
          throwCriticalError: true # Exit from builder on critical error

Libraries

grapher_builder