graphql_generator2 6.3.0 copy "graphql_generator2: ^6.3.0" to clipboard
graphql_generator2: ^6.3.0 copied to clipboard

Generates GraphQL schemas from Dart classes, for use with pkg:graphql_server2.

example/main.dart

import 'package:graphql_schema2/graphql_schema2.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
150
points
203
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

Generates GraphQL schemas from Dart classes, for use with pkg:graphql_server2.

Homepage
Repository (GitHub)
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, angel3_model, angel3_serialize_generator, build, build_config, code_builder, collection, graphql_schema2, recase, source_gen

More

Packages that depend on graphql_generator2