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

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?  
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.
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?
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.
Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.