search menu icon-carat-right cmu-wordmark

GraphQL + Ruby = Love

May 2019 Presentation
David Litvak (Contentful)

This presentation looks into the state of GraphQL in Ruby and describes how to benefit from the power that GraphQL APIs can provide compared to equivalent REST APIs.

Publisher:

Software Engineering Institute

Watch

Abstract

Are you a backend developer who has heard about this new technology called GraphQL? Do you feel a bit left out?

GraphQL is an expressive query language, released by Facebook in 2015, that allows for granular and network-efficient control over retrieved data with a single request, type-safe API definitions with the ability to easily evolve and extend them, and wide tooling support backed by some of the biggest companies, like Facebook, GitHub, Shopify, and more.

Let's look into the state of GraphQL in Ruby and see how we can benefit from the amazing power that GraphQL APIs can provide us. We'll look at how to integrate existing GraphQL APIs as data sources for our existing applications and show how it can improve the performance of our applications compared to equivalent REST APIs. We'll also take a deep-dive into a tool I wrote called “GQLi,” a GraphQL client that enables users to write queries in native Ruby code. I'll describe its philosophy, how to use it, and some cool meta-programming tricks used to create it.