dartpollo_annotation 0.1.0-alpha.1 copy "dartpollo_annotation: ^0.1.0-alpha.1" to clipboard
dartpollo_annotation: ^0.1.0-alpha.1 copied to clipboard

Shared types and annotations for the dartpollo GraphQL client and generator.

dartpollo_annotation #

Shared types and annotations used by the dartpollo GraphQL client and dartpollo_generator code generator.

Overview #

This package contains the core types that both the runtime client and the build-time code generator depend on:

  • GraphQLQuery — Base class for all generated GraphQL query types
  • GraphQLResponse — Typed response wrapper returned by the client
  • GeneratorOptions — Configuration options for code generation
  • SchemaMap / ScalarMap / DartType — Schema mapping types used in build.yaml configuration
  • DocumentNodeHelpers — Utilities for working with GraphQL DocumentNode

Usage #

You typically don't need to depend on this package directly. It is automatically included as a transitive dependency when you add dartpollo or dartpollo_generator to your project.

# Just add these — dartpollo_annotation comes along automatically
dependencies:
  dartpollo: ^0.1.0

dev_dependencies:
  dartpollo_generator: ^0.1.0

Why does this package exist? #

It serves as the shared contract between the client and the generator, preventing circular dependencies:

dartpollo_annotation  ← minimal shared types
       ↑         ↑
 dartpollo    dartpollo_generator
 (runtime)      (build-time)
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shared types and annotations for the dartpollo GraphQL client and generator.

Repository (GitHub)
View/report issues

Topics

#graphql #codegen #annotation

License

MIT (license)

Dependencies

equatable, gql, gql_exec, json_annotation, pedantic_mono, yaml

More

Packages that depend on dartpollo_annotation