graphql-ruby-demo
graphql-ruby-demo copied to clipboard
Make a real application
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?
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?
Oh, that makes sense, I'll keep testing in mind!
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.