Live data from Hacker News

Relay Modern: Simpler, faster, more extensible

code.facebook.com

1–10 of 111 posts

Re: Relay Modern: Simpler, faster, more extensible

#4
> "Relay Modern is designed from the start to support garbage collection — that is, cache eviction — in which GraphQL data that is no longer used by any views can be removed from the cache"

Could we go ahead and implement proper caching as HTTP would do: expiration date per field/models, then eviction based on expiration dates? With an optional max cache size using LIFO, last used or the current model.

That way we don't need to refetch data if the API is set up to cache. It's sort of frustrating that staleness is just defacto ignored by UI right now.

Re: Relay Modern: Simpler, faster, more extensible

#6
Is there any great libraries to implement the backend for GraphQL? I think the benefits of using GraphQL on the frontend are pretty obvious, however last time I checked I had trouble of finding good documentation or implementation on how to serve GraphQL requests from the backend point of view.

Re: Relay Modern: Simpler, faster, more extensible

#7
I'm super excited about this release! Great work Jan, Lee, Joe and everybody else who was working on this! :)

At Graphcool (https://www.graph.cool/) we were using Relay since the very beginning. It has enabled us to build frontend products at an incredible speed and while staying confident about the data layer. For instance our entire console is written using Relay at its core. (It's open-source btw: https://github.com/graphcool/console)

PS: We're also the authors of Learn Relay (https://www.learnrelay.org/) which we'll update to Modern Relay soon!

Re: Relay Modern: Simpler, faster, more extensible

#8

Is there any great libraries to implement the backend for GraphQL? I think the benefits of using GraphQL on the frontend are pretty obvious, however last time I checked I had trouble of finding good documentation or implementation on how to serve GraphQL requests from the backend point of view.

Graphene is nice for Python. Supports Relay stuff too (I've never used these features, though).

http://graphene-python.org/

Re: Relay Modern: Simpler, faster, more extensible

#9

Is there any great libraries to implement the backend for GraphQL? I think the benefits of using GraphQL on the frontend are pretty obvious, however last time I checked I had trouble of finding good documentation or implementation on how to serve GraphQL requests from the backend point of view.

Absinthe works great for me: http://absinthe-graphql.org/
Post reply on HN