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

SDKDart
outdated

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
120
points
213
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

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

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