Skip to main content

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

Databases • Asked by Bob Walsh
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.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.