Relay 101: Building A Hacker News Client

Getting GraphQL

Setting Up The Project

Building A Static Component

Data From The Server

Hey Relay, I’m going to re-define my Item component as a new component which wraps the original in a container.

For the component’s “store” prop, I need the data described in this GraphQL fragment.

I know I need it on a “HackerNewsAPI” object because I explored the API via http://GraphQLHub.com/playground/hn.

A List Of Components

Variables in Queries

Relay 102

--

--

Engineering @Opendoor

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store