graphql_generator3 3.2.1 copy "graphql_generator3: ^3.2.1" to clipboard
graphql_generator3: ^3.2.1 copied to clipboard

Generates graphql_schema3 types from annotated Dart classes at build time, for use with graphql_server3. A build-time dependency only.

example/main.dart

import 'package:graphql_schema3/graphql_schema3.dart';
part 'main.g.dart';

@graphQLClass
class TodoItem {
  String? text;

  @GraphQLDocumentation(description: 'Whether this item is complete.')
  bool? isComplete;
}

void main() {
  print(todoItemGraphQLType.fields.map((f) => f.name));
}
0
likes
160
points
130
downloads

Documentation

API reference

Publisher

verified publishercomapps.be

Weekly Downloads

Generates graphql_schema3 types from annotated Dart classes at build time, for use with graphql_server3. A build-time dependency only.

Repository (GitHub)
View/report issues

Topics

#graphql #codegen #build-runner

License

BSD-3-Clause (license)

Dependencies

analyzer, build, code_builder, graphql_schema3, json_annotation, source_gen

More

Packages that depend on graphql_generator3