Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

GraphQL over REST with Node, Heroku, and Apollo Engine

Blog post from Apollo

Post Details
Company
Date Published
Author
Sashko Stubailo
Word Count
1,654
Language
English
Hacker News Points
-
Summary

Sashko Stubailo explores the benefits of wrapping a REST API with GraphQL, including easier data querying, frontend developer productivity, and more efficient networking. He demonstrates this using Node, Heroku, and Apollo Engine, creating a simple example server that wraps a Ticketmaster API. The schema defines the shape of the data, and resolvers wire it up to the underlying REST API. With Apollo Server and Engine, the GraphQL endpoint is attached to an Express server, enabling tracing, caching, and deployment on Heroku. Running queries locally allows for testing and verifying the performance benefits of using GraphQL. The article concludes with deploying the API to Heroku and testing its accessibility via cURL.