Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a real application #23

Open
rmosolgo opened this issue Jan 20, 2017 · 3 comments
Open

Make a real application #23

rmosolgo opened this issue Jan 20, 2017 · 3 comments

Comments

@rmosolgo
Copy link
Owner

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?

@Bartuz
Copy link

Bartuz commented Jan 22, 2017

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?

@rmosolgo
Copy link
Owner Author

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

@sandergroen
Copy link

sandergroen commented Aug 9, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants