Last updated:
0 purchases
gql entity gen
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
copied to clipboard
2. Run the package #
After setting up the configuration, all that is left to do is run the package.
flutter pub get
flutter pub run gql_entity_gen -a http://localhost:4000/graphql -o lib/model.dart -e "User,Post,Comment"
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.