The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Convert GraphQL List Type to a Relay Connection Type

Convert GraphQL List Type to a Relay Connection Type

4:12
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
mobility-team

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

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?