Skip to main content

gqlify 0.1.0 copy "gqlify: ^0.1.0" to clipboard
gqlify: ^0.1.0 copied to clipboard

GraphQL, simplified for Dart. A build-time GraphQL code generator producing small, strongly typed Dart APIs from a schema and operation documents.

0.1.0 #

First release.

  • Generates a typed Dart API from a GraphQL schema (SDL or introspection JSON) and your .graphql operations: await api.fetchPerson(id: '1').
  • Fragments become interfaces; unions and interfaces become sealed classes with a fallback for types added later; enums, input objects (with explicit null vs omitted), @oneOf and custom scalars are supported.
  • Full validation of your operations against the schema, with clear, located errors and deprecation warnings.
  • dart run gqlify generate / check with a correctness-first cache, plus --clean, --explain, cache verify and cache clear.
  • A build_runner builder that produces exactly the same files as the CLI.
  • Modes for operations, schema types only, or both.
0
likes
160
points
50
downloads
screenshot

Documentation

API reference

Publisher

verified publisherenver.dev

Weekly Downloads

GraphQL, simplified for Dart. A build-time GraphQL code generator producing small, strongly typed Dart APIs from a schema and operation documents.

Repository (GitHub)
View/report issues

Topics

#graphql #codegen #build-runner #api #code-generation

License

MIT (license)

Dependencies

args, build, collection, crypto, dart_style, glob, gql, path, pub_semver, source_span, yaml

More

Packages that depend on gqlify