Last active
September 19, 2020 06:09
-
-
Save JasCodes/0db5c2d1a5bafa5479144f06723d57e2 to your computer and use it in GitHub Desktop.
Dart Graphqless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pokemon Class is generated code from introspection | |
final NestedFragment = Pokemon(retFields:[id,name]); | |
final PokemonCard = Pokemon(returnFields:[maxHP,image],fragments:[NestedFragment]); | |
final q1Result = Pokemon(fragments:[PokemonCard]).query(); | |
final q2Result = Pokemon(fragments:[PokemonCard],returnFields:[weight(returnFields:minimum,maximum),height(minimum,maximum)]).query(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment