News for hackers. Stuff that matters.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by sAbakumoff on Saturday July 01, 2017 @12:48PM (#14677815)
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
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by scottmf on Saturday July 01, 2017 @02:35PM (#14678302)
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by sAbakumoff on Saturday July 01, 2017 @06:15PM (#14679343)
Thanks 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.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by scottmf on Saturday July 01, 2017 @10:39PM (#14680548)
It should be able to. I'm using websockets in Apollo with a JS back end.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by lioeters on Saturday July 01, 2017 @01:03PM (#14677876)
I 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?

Re:React, Relay and GraphQL: Under the Hood of the Times Web... by djmashko2 on Saturday July 01, 2017 @01:13PM (#14677915)
I 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.

Re:React, Relay and GraphQL: Under the Hood of the Times Web... by lioeters on Saturday July 01, 2017 @08:51PM (#14680096)
Aha, thanks for the clarification. Upon reading the comment again, I see that it's Relay that didn't suit his use case, not GraphQL.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by sAbakumoff on Saturday July 01, 2017 @01:27PM (#14677989)
Yes exactly, thanks for your help.
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by sAbakumoff on Saturday July 01, 2017 @06:18PM (#14679363)
What's wrong with inflammatory adjectives?
Re:React, Relay and GraphQL: Under the Hood of the Times Web... by lioeters on Saturday July 01, 2017 @08:56PM (#14680118)
Well, 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.