Project made to test GraphQL with Node.
This project converts EURs to any other currency through the Yahoo and Fixer API.
- Docker
- Docker-compose >= 3.6
$ docker-compose up -d
Go to http://localhost:8081/graphql and feel free to test the online EUR currency converter.
Expected query:
{
yahoo(amount: 10.20, to: "USD") {
converted, rate
}
}
{
fixer(amount: 10.20, to: "USD") {
converted, rate
}
}
Expected response:
{
"data": {
"yahoo": {
"converted": 11.800379999999999,
"rate": 1.1569
}
}
}