I added a GraphQL endpoint to it using absinthe. This was my first time working with GraphQL. The experience was pretty good. Thanks @benwilson512 and @bruce
However the GraphQL endpoint is much slower than the REST endpoint for getting cases and predicated cases. I haven’t had much of a chance to figure out why.
For the people with lots of experience with GraphQL if I’m doing anything obviously dumb please point it out for me. Thanks!
https://github.com/avencera/covid/blob/master/lib/covid_web/schema.ex
EDIT: I love elixir I was able to quickly and easily add a cache to make it faster:
Add cache for day cases and predictions · avencera/covid@f167f49 · GitHub






















