Created
May 12, 2021 23:40
-
-
Save ramyak-mehra/273637f0b642cc1eb2c5d3c5fcd3fe83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| """Represents a Pokémon's attack types""" | |
| type Attack { | |
| """The name of this Pokémon attack""" | |
| name: String | |
| """The type of this Pokémon attack""" | |
| type: String | |
| """The damage of this Pokémon attack""" | |
| damage: Int | |
| } | |
| """Represents a Pokémon""" | |
| type Pokemon { | |
| """The ID of an object""" | |
| id: ID! | |
| """The identifier of this Pokémon""" | |
| number: String | |
| """The name of this Pokémon""" | |
| name: String | |
| """The minimum and maximum weight of this Pokémon""" | |
| weight: PokemonDimension | |
| """The minimum and maximum weight of this Pokémon""" | |
| height: PokemonDimension | |
| """The classification of this Pokémon""" | |
| classification: String | |
| """The type(s) of this Pokémon""" | |
| types: [String] | |
| """The type(s) of Pokémons that this Pokémon is resistant to""" | |
| resistant: [String] | |
| """The attacks of this Pokémon""" | |
| attacks: PokemonAttack | |
| """The type(s) of Pokémons that this Pokémon weak to""" | |
| weaknesses: [String] | |
| fleeRate: Float | |
| """The maximum CP of this Pokémon""" | |
| maxCP: Int | |
| """The evolutions of this Pokémon""" | |
| evolutions: [Pokemon] | |
| """The evolution requirements of this Pokémon""" | |
| evolutionRequirements: PokemonEvolutionRequirement | |
| """The maximum HP of this Pokémon""" | |
| maxHP: Int | |
| image: String | |
| } | |
| """Represents a Pokémon's attack types""" | |
| type PokemonAttack { | |
| """The fast attacks of this Pokémon""" | |
| fast: [Attack] | |
| """The special attacks of this Pokémon""" | |
| special: [Attack] | |
| } | |
| """Represents a Pokémon's dimensions""" | |
| type PokemonDimension { | |
| """The minimum value of this dimension""" | |
| minimum: String | |
| """The maximum value of this dimension""" | |
| maximum: String | |
| } | |
| """Represents a Pokémon's requirement to evolve""" | |
| type PokemonEvolutionRequirement { | |
| """The amount of candy to evolve""" | |
| amount: Int | |
| """The name of the candy to evolve""" | |
| name: String | |
| } | |
| """Query any Pokémon by number or name""" | |
| type Query { | |
| query: Query | |
| pokemons(first: Int!): [Pokemon] | |
| pokemon(id: String, name: String): Pokemon | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment