Convert GraphQL List Type to a Relay Connection Type

Share this video with your friends

Send Tweet

In order to properly traverse through collections, Relay-compliant servers require a mechanism to page through collections available in a GraphQL Schema. In this video, we’ll create a Connection type from an existing GraphQL List Type and learn how to access edge information from each collection.

mobility-team
mobility-team
~ 8 years ago

I had to change the getVideos function from: return videos to : return new Promise(resolve => resolve(videos));

since graphQL was complaining about a dataPromise.then is not a function

Tony Catalfo
Tony Catalfo
~ 6 years ago

How do you represent a list in a graph? Using a tool like arrow.