Serverless function for the graphql-pokemon-ui
https://github.com/LuisValgoi/graphql-pokemon-ui
yarn
yarn start
/.netlify/functions/api/v1/pokemons
yarn start
: runs locally @ :9000.yarn build
: to netlify run this server.
express
: The node server.serverless-http
: Serverless facilitator.netlify-lambda
: Netlify function helper.
The data was extracted from graphql-pokemon.now.sh
The following query gets the 50 first records @ database
{
pokemons(first: 50) {
id
number
name
weight {
minimum
maximum
}
height {
minimum
maximum
}
classification
resistant
weaknesses
fleeRate
maxCP
evolutionRequirements {
amount
name
}
maxHP
image
types
attacks {
special {
name
type
damage
}
}
evolutions {
id
number
name
weight {
minimum
maximum
}
attacks {
fast {
name
type
damage
}
}
}
}
}