dartpollo_annotation 0.1.0-alpha.7
dartpollo_annotation: ^0.1.0-alpha.7 copied to clipboard
Shared types and annotations for the dartpollo GraphQL client and generator.
dartpollo_annotation #
Documentation · Getting started
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.
If you import annotation types directly, declare the published dependency explicitly:
dependencies:
dartpollo_annotation: 0.1.0-alpha.7
Consumer examples target alpha.7 (Dart ^3.10.0). For generator setup, use the complete quickstart.
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)