News for hackers. Stuff that matters.
Re:Tutorial: Designing a GraphQL API by k__ on Tuesday July 17, 2018 @05:27AM (#17548412)
Isn't the Relay way the de facto standard?
Re:Tutorial: Designing a GraphQL API by andrewingram on Tuesday July 17, 2018 @07:49AM (#17549003)
The Relay patterns are are decent starting point, but even if using Relay they're more-or-less optional

Relay connections (cursor-based pagination) are decent for many reasonable use cases, but if you absolutely do need random access (let's say you have a virtualized list where a user can scroll quickly to a specific point and load only the data local to it), you'll have to bring your own pagination solution.

Re:Tutorial: Designing a GraphQL API by ilikehurdles on Tuesday July 17, 2018 @11:38AM (#17550424)
The Relay way is one common style, but I wouldn't call anything a standard at this point. It feels to me like it's OK if this area needs some time to settle, as there are a few styles that work well for different use-cases, and people are still figuring out if there are better ways out there.

The apollo docs lightly touch on a few styles https://www.apollographql.com/docs/react/features/pagination...