Ask A Question

Notifications

You’re not receiving notifications from this thread.

Is a Rails 5/react.js app only using GraphQL feasible?

Bob Walsh asked in Databases
I'm building a new app: rails 5 for the backend, react.js (actually Gatsby) for the frontend. Is it possible/desirable to do it all using GraphQL and skip REST endpoints entirely?  
Reply
Of course it is. If that's what makes sense for your application. GraphQL APIs are far more flexible. Here's a great gem for building a GraphQL API in Ruby: https://github.com/rmosolgo/graphql-ruby.

If you need Relay, I believe you have to pay for the pro version though.
Reply
looks good, But for "Pro" version, $900/yr ??? http://graphql.pro/ Are there other, less expensive, ways of doing GraphQL in Ruby that people here recommend?
Reply
Really, if you don't use Relay, you won't need the pro version. That's the only GraphQL gem I'm familiar with, though.
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 81,842+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.