An introduction to GraphQL
Presented at Facebook Developer Circles GDL chapter meetup in February 28th
Who is that GraphQL all myfriends are talking about?#developercircles#devc@FerPeralesMGraphQL 101
View Slide
#developercircles#devc@FerPeralesM
Software EngineerSenior Software Engineer @ michelada.ioFLOSS advocateHeavy Metal and Beer loverHost the RubyGDL communityCo-founder @ Railsbridge MéxicoIn Gregory Sallust I trust#developercircles#devc@FerPeralesM
What is GraphQL?#developercircles#devc@FerPeralesM
2012#developercircles#devc@FerPeralesM
REST#developercircles#devc@FerPeralesM
Spotify#developercircles#devc@FerPeralesM
Goal: get the name of all the tracksfrom a playlist called “Starred”created by an specific user#developercircles#devc@FerPeralesM
Success!#developercircles#devc@FerPeralesM
We only needed#developercircles#devc@FerPeralesM
3 HTTP calls#developercircles#devc@FerPeralesM
Do an intensive operation in ourbackend (searching for the playlistwith the “Starred” name)#developercircles#devc@FerPeralesM
And getting three big payloads withunnecessary data**for our needs#developercircles#devc@FerPeralesM
GraphQL is, as the name mightsuggest, a query language#developercircles#devc@FerPeralesM
Advantages#developercircles#devc@FerPeralesM
Get exactly what you want#developercircles#devc@FerPeralesM
Nesting#developercircles#devc@FerPeralesM
Strongly typed#developercircles#devc@FerPeralesM
Introspective#developercircles#devc@FerPeralesM
No versioning#developercircles#devc@FerPeralesM
Demo#developercircles#devc@FerPeralesM
FerPerales/graphql_demo#developercircles#devc@FerPeralesM
ferperales/graphql-101-devc#developercircles#devc@FerPeralesM
Sourceshttps://medium.freecodecamp.com/so-whats-this-graphql-thing-i-keep-hearing-about-baf4d36c20cfhttp://blog.codeship.com/an-introduction-to-graphql-via-the-github-apihttp://facebook.github.io/graphql/http://thenewstack.io/graphql-data-query-language-resource-guidehttp://medium.freecodecamp.com/give-it-a-rest-use-graphql-for-your-apis-40a2761e6336http://dev.to/reactiveconf/why-i-believe-graphql-will-come-to-replace-rest#developercircles#devc@FerPeralesM
Thanks!#developercircles#devc@FerPeralesM