Realworld: Implement GraphQL + Apollo/Relay for the Node + React codebases

Created on 19 Apr 2017  ยท  27Comments  ยท  Source: gothinkster/realworld

Originally brought up by @kentcdodds here; further discussion here.

Opening this issue to get a discussion going!

backend frontend wip

Most helpful comment

I have done a GraphQL implementation with React + Apollo front-end and Ruby on Rails back-end.
Front-end - https://github.com/dostu/react-apollo-realworld-example-app
Back-end - https://github.com/dostu/rails-graphql-realworld-example-app
Demo - http://realworld-react-apollo.herokuapp.com/

Would be great to see other implementations, and mix and match them like we can with the REST API. For that, we should first decide on a schema. So far I have come up with this: https://github.com/dostu/rails-graphql-realworld-example-app/blob/master/GRAPHQL_API_SPEC.md. Would love to hear any opinions about it.

All 27 comments

I can help with this (eventually). Would recommend using Apollo.

Awesome! Wanna fork the starter kit and post the link here so that others can watch/help?

I don't have time right now, but I will see if I can connect you with people in the Apollo community who have more free time than I do

I've been talking a bit with mxstbr here. He might be willing to help with it. He was mentioned in the tweet that you linked to above

I think this boilerplate https://github.com/entria/graphql-dataloader-boilerplate can be used as a start point

I have this one for React Native + React Navigation + Relay https://github.com/sibelius/ReactNavigationRelay.

It is almost migrated to Relay Modern as well: https://github.com/sibelius/ReactNavigationRelay/pull/5

This is a great idea! Unfortunately I don't have time to work on this myself but would love to help if I can.

@sibelius awesome! Would you be interested in taking lead on GraphQL/Relay?

@stubailo no worries โ€” would be โค๏ธ if you could give feedback on the final code once it's ready!

@EricSimons would definitely encourage use of Apollo over Relay. It seems to be getting more traction these days

We can do both, Apollo, Relay and Relay Modern.

I can help with any questions for sure.
I don't have time to work on this myself

@leebyron do you know of anyone in the GraphQL community who might be interested in this?

@ericSimons I can help with the GraphQL implementation in the server side.

@thebergamo awesome! I just spun up a new issue for it (https://github.com/gothinkster/realworld/issues/46) โ€” can you fork the starter kit and post it in the issue? I'll update the status afterwards ๐Ÿ‘

I can chip away at a Relay Modern implementation, @EricSimons, @thebergamo.

@EricSimons done!

@steveluscher awesome! Just spun up a new issue for it โ€” can you fork the starter kit and post it in the issue? I'll update the status afterwards ๐Ÿ‘

Also, I created a gitter room so that all of the folks working on graphql/apollo/relay can chat and coordinate (since they rely on each other) cc/ @thebergamo

It looks like this issue has been split into multiple other issues. Do we still need this one or can we close it?

@EricSimons I can handle Apollo if you give me a few weeks haha

@thebigredgeek all help will be very welcomed! until the end of week we will have a version of the server side graphql implemented with Apollo

@thebergamo @thebigredgeek should I create a new issue for the Apollo part of this (right now we have GraphQL and Relay issues)?

I'm planning using Apollo as a graphql server. Probably isn't necessary create a new issue.

@thebergamo apollo has graphql-server, but their main focus is apollo-client which is the most popular client-side graphql implementation.

@EricSimons same issue is probably fine

@thebergamo and anyone else here: If you want, you can join the #realworld channel in the Apollo Slack to help coordinate an example, both server and client!

@stubailo I'm in! Thanks for the option!

I have done a GraphQL implementation with React + Apollo front-end and Ruby on Rails back-end.
Front-end - https://github.com/dostu/react-apollo-realworld-example-app
Back-end - https://github.com/dostu/rails-graphql-realworld-example-app
Demo - http://realworld-react-apollo.herokuapp.com/

Would be great to see other implementations, and mix and match them like we can with the REST API. For that, we should first decide on a schema. So far I have come up with this: https://github.com/dostu/rails-graphql-realworld-example-app/blob/master/GRAPHQL_API_SPEC.md. Would love to hear any opinions about it.

Still looking for it? I can hop on this one now.

Found https://github.com/thebergamo/realworld-graphql by @thebergamo which is pretty nice, just wish it was in express instead.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EricSimons picture EricSimons  ยท  6Comments

vladfaust picture vladfaust  ยท  5Comments

JackyChiu picture JackyChiu  ยท  4Comments

EricSimons picture EricSimons  ยท  3Comments

mihail-petrov picture mihail-petrov  ยท  3Comments