I have a rest API that returns an object with a list of ids with counts on each of them.
{
"orders": {
"PMY5XbR7FZo5qEkEb": 0
}
}
I have no idea what the keys of the orders object will be ahead of time, nor do I know how many keys there will be.
This question's response suggests using a JSON type, which is risky but do-able.
The problem is that this doesn't work with a graphQL yoga server:
type Task {
orders: JSON
}
How do I refer to JSON types in a yoga server?