4 ms·
I tried Relay but found it ridiculously stupid that I need to change the graphql API on my server in order to satisfy the relay concepts(universal id, connectio
by sAbakumoff 9y ago
I tried Relay but found it ridiculously stupid that I need to change the graphql API on my server in order to satisfy the relay concepts(universal id, connections) so we rejected the idea and decided to go with the good old fashioned redux
- lioeters 9y agoI appreciate your perspective, as I've been considering whether to invest time into learning GraphQL. It's informative to know that it's not suitable for some use cases. Probably could have done without the inflammatory adjectives.. ;) As far as the criticism, would you be kind enough to explain what you mean by "relay concepts", and how GraphQL failed to satisfy those needs?
- djmashko2 9y agoI think the parent is saying something different: They were happy with GraphQL for their API, but weren't happy with the requirements the Relay client library imposed. My interpretation is that they are now using a GraphQL API but fetching from it with regular HTTP fetches and managing data with Redux on the frontend.
- sAbakumoff 9y agoYes exactly, thanks for your help.
- lioeters 9y agoAha, thanks for the clarification. Upon reading the comment again, I see that it's Relay that didn't suit his use case, not GraphQL.
- sAbakumoff 9y agoWhat's wrong with inflammatory adjectives?
- lioeters 9y agoWell, I just imagined that the devs of the library may be come across your comment and be offended/saddened to hear it being called "ridiculous" and "stupid". But then again, it sounds like you have good reasons to be frustrated with it, so why not. I recently saw someone write, "Webpack is ridiculous" - I suppose there's nothing wrong with inflammatory adjectives if it's backed up by evidence/experience.
- scottmf 9y agoTake a look at Apollo. https://github.com/apollographql/apollo-client https://github.com/apollographql/apollo-client
- sAbakumoff 9y agoThanks for suggestion. The back-end is written on Go, the client talks to it via web-socket. I am wondering if Apollo can handle that.
- scottmf 9y agoIt should be able to. I'm using websockets in Apollo with a JS back end.