retrofit_graphql 2.2.0 copy "retrofit_graphql: ^2.2.0" to clipboard
retrofit_graphql: ^2.2.0 copied to clipboard

retrofit_graphql or Retrofit GraphQL for Dart is a powerful code generation tool that simplifies working with GraphQL in Dart projects. This tool automates the generation of Dart classes for types, en [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add retrofit_graphql

With Flutter:

 $ flutter pub add retrofit_graphql

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  retrofit_graphql: ^2.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:retrofit_graphql/code_generators.dart';
import 'package:retrofit_graphql/retrofit_graphql_generator_builder.dart';
2
likes
120
points
37
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

retrofit_graphql or Retrofit GraphQL for Dart is a powerful code generation tool that simplifies working with GraphQL in Dart projects. This tool automates the generation of Dart classes for types, enums, inputs. Additionally, it creates a GraphQL client for streamlined query, mutation and subscription execution. The code generator can also be configured to generate fragments that simplify attribute access.​

License

MIT (license)

Dependencies

build, glob, logger, petitparser, source_gen

More

Packages that depend on retrofit_graphql