3 ms·
It's been a bit, but I found the ergonomics and flexibility of Apollo to be miles ahead of Relay. I also found it fairly straightforward to set up Server Side
by rattray 10y ago
It's been a bit, but I found the ergonomics and flexibility of Apollo to be miles ahead of Relay.
I also found it fairly straightforward to set up Server Side Rendering (SSR). My example is at https://github.com/rattrayalex/isomorphic-react-relay-router-koa/blob/master/frontend/server.js https://github.com/rattrayalex/isomorphic-react-relay-router... if it helps anyone, though it's a year out of date.
EDIT: A more up-to-date example at https://github.com/rattrayalex/django-graphql-react-ssr/blob/master/frontend/koa-apollo-redux-react-ssr/index.js https://github.com/rattrayalex/django-graphql-react-ssr/blob... – meant to open-source it as a simple SSR lib.
- underwater 10y agoInteresting. I haven't used Apollo in production. Are there specific things (apart from mutations!) that it makes easier?
- crucialfelix 10y agoMutations are much simpler. Cache updating is flexible and easily customised. They have subscriptions and polling. Fetch More for pagination. Generally clear and flexible to work with