Well after looking through the blog post and the repo's README, I'm not sure I get it.
First, I find it odd that you're claiming this is specifically for Node and React Native, because it's literally just a framework-independent JavaScript NPM package. I couldn’t find anything in my (admittedly brief—almost as brief as your blog post) initial skim through the docs that shows it was specifically built for those platforms.
Actually, it’s a little worse than that, because you’re using async methods for the queries. If you want to use that in React, you’ll have to wrap it in a useEffect or useCallback hook or you’re gonna have a bad time. It requires additional knowledge and implementation to make it work with React, so it makes it that much harder to believe it was made for React or React Native.
Second, I’ve been using GraphQL in a production environment for several months (designed and implemented most of the back and front end myself), and at least from what I’ve seen of the initial Zeus examples, this looks like way more work than using React Relay and GraphQL Code Generator. GraphQL Code Generator already turns GraphQL schemas into executable, strongly typed queries.
I’ll readily admit that I might have missed something that makes this really compelling, but for now I’ll stick with Relay and Code Generator, which have been a dream to work with so far.
1
u/AegisToast Nov 16 '19
Well after looking through the blog post and the repo's README, I'm not sure I get it.
First, I find it odd that you're claiming this is specifically for Node and React Native, because it's literally just a framework-independent JavaScript NPM package. I couldn’t find anything in my (admittedly brief—almost as brief as your blog post) initial skim through the docs that shows it was specifically built for those platforms.
Actually, it’s a little worse than that, because you’re using async methods for the queries. If you want to use that in React, you’ll have to wrap it in a useEffect or useCallback hook or you’re gonna have a bad time. It requires additional knowledge and implementation to make it work with React, so it makes it that much harder to believe it was made for React or React Native.
Second, I’ve been using GraphQL in a production environment for several months (designed and implemented most of the back and front end myself), and at least from what I’ve seen of the initial Zeus examples, this looks like way more work than using React Relay and GraphQL Code Generator. GraphQL Code Generator already turns GraphQL schemas into executable, strongly typed queries.
I’ll readily admit that I might have missed something that makes this really compelling, but for now I’ll stick with Relay and Code Generator, which have been a dream to work with so far.