Assume we're consuming an API that we don't control. That API returns an array of mapped currency / price pairs like this:
[{"GBP":1.092},{"USD":0.878977}]
How can this be modelled in a GraphQL schema?
Note: the format in which this data arrives on the client is not important. e.g. it could be something like:
[
{
"currency": "GBP",
"value": 1.092
},
{
"currency": "USD",
"value": 0.878977
}
]