dartpollo_annotation 0.1.0-alpha.1
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 typesGraphQLResponse— Typed response wrapper returned by the clientGeneratorOptions— Configuration options for code generationSchemaMap/ScalarMap/DartType— Schema mapping types used inbuild.yamlconfigurationDocumentNodeHelpers— Utilities for working with GraphQLDocumentNode
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)