graphlink 4.2.0
graphlink: ^4.2.0 copied to clipboard
GraphLink is a powerful code generation tool that generates type-safe client and server code from GraphQL schemas for Dart, Java, Spring Boot and more.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add graphlinkWith Flutter:
$ flutter pub add graphlinkThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
graphlink: ^4.2.0Alternatively, 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:graphlink/code_generators.dart';
import 'package:graphlink/graphlink_generator_builder.dart';