graphql-ruby-demo icon indicating copy to clipboard operation
graphql-ruby-demo copied to clipboard

Make a real application

Open rmosolgo opened this issue 8 years ago • 3 comments

I would like to beef up this application in order to provide examples of more advanced usage. I have a few possibilities in mind:

  • Pick a domain with familiar but interesting data
  • Accept inputs from users (no user-supplied text, though)
  • Make a JS front-end (vanilla JS? Apollo? Relay?)
  • Demonstrate some common practices:
    • GraphQL::Batch + ActiveRecord
    • Relay-compliant mutations
    • Dynamically-generated types and fields
    • Custom Scalar?
    • Simple Authorization

Is there anything else that could be added to make this demo more useful?

rmosolgo avatar Jan 20 '17 20:01 rmosolgo

Sounds great! I'm just about to try graphql for the first time but I'm feel very lost with lack of rails related examples.

I'm very confused about testing mutations queries. Will you make 100% test coverage on your project?

Bartuz avatar Jan 22 '17 18:01 Bartuz

Oh, that makes sense, I'll keep testing in mind!

rmosolgo avatar Jan 22 '17 18:01 rmosolgo

Hi, Robert I would like to help you on implementing the example application to refresh my GraphQL/Relay skills.

Pick a domain with familiar but interesting data What about a blog with posts that belong to a user and comments?

Make a JS front-end (vanilla JS? Apollo? Relay?) Why not implementing all those options in different views. Vanilla JS is nice because you can really see how GraphQL works from the client side perspective. Apollo seems like a good alternative for Relay (I don't have experience with Apollo but I would like to play with it). We can use Webpacker and Relay Modern (for the Relay option) to make it happen.

sandergroen avatar Aug 09 '17 10:08 sandergroen