retrofit_graphql 2.1.2
retrofit_graphql: ^2.1.2 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_graphqlThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
retrofit_graphql: ^2.1.2Alternatively, your editor might support dart 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';