fenv_graphql_codegen 0.2.0 copy "fenv_graphql_codegen: ^0.2.0" to clipboard
fenv_graphql_codegen: ^0.2.0 copied to clipboard

A Dart code generator that creates test-friendly wrappers and mock implementations for GraphQL operations.

example/example.md

fenv_graphql_codegen Example #

This package generates test-friendly wrappers for GraphQL operations in Dart/Flutter applications.

Quick Start #

For complete documentation, installation instructions, and usage examples, please refer to the README.md.

Working Example #

A comprehensive example project demonstrating all features is available in the repository:

test_packages/blog_platform_test

This example includes:

  • GraphQL schema and operations
  • Generated code for queries, mutations, and fragments
  • Pagination implementation
  • Golden file tests
  • Real-world use cases with a blog platform

Key Features #

  • Type-safe GraphQL operations - Generated wrappers with full type safety
  • Test-friendly design - Mock implementations for all operations
  • Pagination support - Built-in support for cursor-based pagination
  • Flutter Hooks integration - Query and mutation hooks for reactive UI
  • Customizable naming - Configure prefixes and suffixes for generated code
1
likes
150
points
2
downloads

Publisher

verified publisherjerry.company

Weekly Downloads

A Dart code generator that creates test-friendly wrappers and mock implementations for GraphQL operations.

Repository (GitHub)
View/report issues

Topics

#graphql #codegen #testing #code-generator #mocking

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, build_config, dart_style, graphql_codegen

More

Packages that depend on fenv_graphql_codegen