We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Since not too long ago, dart introduced Typedefs for non-function types*. It'd be nice if gql_build can generate an optional aliases file such as:
gql_build
./all_pokemon.aliases.dart
import './all_pokemon.req.gql.dart'; import './all_pokemon.var.gql.dart'; import './all_pokemon.data.gql.dart'; typedef AllPokemon = GAllPokemon; typedef AllPokemonData = GAllPokemonData; typedef AllPokemonVar = GAllPokemonVars; typedef AllPokemonVarsBuilder = GAllPokemonVarsBuilder;
import './all_pokemon.aliases.dart'; final pokemonQuery = AllPokemon((b) { b.vars = AllPokemonVarsBuilder()..first = 100; }); final allPokemonsData = AllPokemonData.fromJson({/* json */});
The main advantage will be:
all_pokemon.aliases.dart
* Typedefs for non-function types this is only supported if the min sdk constraint is set to 2.15.0 or higher in pubspec.yaml
2.15.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since not too long ago, dart introduced Typedefs for non-function types*. It'd be nice if
gql_build
can generate an optional aliases file such as:./all_pokemon.aliases.dart
;The main advantage will be:
all_pokemon.aliases.dart
can be included in the analyzer.* Typedefs for non-function types this is only supported if the min sdk constraint is set to
2.15.0
or higher in pubspec.yamlThe text was updated successfully, but these errors were encountered: