gql_entity_gen 0.1.0 copy "gql_entity_gen: ^0.1.0" to clipboard
gql_entity_gen: ^0.1.0 copied to clipboard

A package to auto generate GraphQL entity

GraphQL Entity Generator 🤖 #

A command line tool that automatically generates models with GraphQL. You need to specify in the -e argument the name of the entity you are interested in. If the entity has links to other entities, then they will be automatically generated.

1. Setup the config file #

Add your GraphQL Entity Generator configuration to your pubspec.yaml. An example is shown below. More complex examples can be found in the example projects.

dev_dependencies:
  gql_entity_gen: ^0.1.0

2. Run the package #

After setting up the configuration, all that is left to do is run the package.

flutter pub get
dart run gql_entity_gen -a http://localhost:4000/graphql -o lib/model.dart -e "User,Post,Comment"
3
likes
130
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A package to auto generate GraphQL entity

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, http

More

Packages that depend on gql_entity_gen