https://github.com/mrnovalles/covid19_graphql_api
A Graphql API to obtain information regarding the covid19 stats
https://github.com/mrnovalles/covid19_graphql_api
covid19-api grapqhl ruby
Last synced: about 1 year ago
JSON representation
A Graphql API to obtain information regarding the covid19 stats
- Host: GitHub
- URL: https://github.com/mrnovalles/covid19_graphql_api
- Owner: mrnovalles
- License: mit
- Created: 2020-05-11T10:17:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T06:23:10.000Z (over 3 years ago)
- Last Synced: 2025-04-12T00:44:25.207Z (about 1 year ago)
- Topics: covid19-api, grapqhl, ruby
- Language: Ruby
- Homepage: https://covid19-graphql-api-demo.herokuapp.com/
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Covid19 Graphql-api Demo
A Graphql API to obtain information regarding the covid19 stats by querying
`api.covid19api.com`
Demo en Heroku:
https://covid19-graphql-api-demo.herokuapp.com/
This project is just a demo for a talk given at MasCon-Online conference held
on May 14th 2020.
Some of the bits of Graphql in ruby covered here are:
- Building up a `schema` in ruby with the `graphql-ruby` gem
- Making sure we can access the schema using a `query` field.
- Avoiding N+1s in some of our queries
- "Look Mom no Database". Hitting that other REST API hard
### Additional info
If you see this before May 17th please donate by getting a ticket at
https://www.eventbrite.com/e/con-online-a-beneficio-tickets-103924878108
(all donations will go to a community soup kitchen "Comedor Los Angelitos de Dios")
## Español - Demo de una API en Graphql para Covid19
Este proyecto es sólo una demo para mostrar las estadisticas diarias de distintos
países durante covid19 obteniendo la info de: `api.covid19api.com`
Esta demo acompaña una charla en MasCon-Online 2020, una conferencia online.
Demo en Heroku:
https://covid19-graphql-api-demo.herokuapp.com/
Algunos puntos sobre Graphql expuestos son:
- Construyendo un `schema` con ruby y `graphql-ruby`
- Construyendo `query` root fields
- Buscando la manera de evitar N+1s
- La falta de necesidad de tener una Base de Datos (peguele a esa api con juerza)
### Info adicional
Si estás viendo esto antes del 17 de Mayo de 2020, por favor considerá donar al
Comedor Los Angelitos de Dios en este link:
https://www.eventbrite.com/e/con-online-a-beneficio-tickets-103924878108