Gaurav Tiwari

Results 9 comments of Gaurav Tiwari

Webpacker/Webpack is great for application code and should not be used by gems because of complicated developer experience unless you are publishing it to NPM but in that case rollup...

Thanks @kennyadsl The starter kit looks great and the approach makes sense 👍 regarding components inside Rails, perhaps: https://github.com/github/view_component would be much better instead of using plain `.erb` partials. >...

Hey @nostophilia, I haven't tried server side rendering with relay yet. You can checkout this repo, https://github.com/brandfolder/rails-graphql-relay (looks outdated though). I will look into this too.

@yumikohey Sure, please checkout this file - https://github.com/gauravtiwari/relay-rails-blog/blob/master/app/api/relay_schema.rb#L54 At the moment, whenever you load your rails server the schema will be auto-generated using a middleware - https://github.com/gauravtiwari/relay-rails-blog/blob/master/lib/graphql_reloader.rb, which is added...

@yumikohey No problem 👍 Great, no you got it right for this type of small'ish project there isn't many benefits, given the work involved. However, if you intend to build...

Hey Paul, Thanks for pointing out. You know, I intended to do another series of post on authorisation, but never got chance (apart from keeping the project up-to-date). Will fix...

@nuclearspike - made some small updates. I might do this differently, but for now this is good enough - https://github.com/gauravtiwari/relay-rails-blog/blob/master/app/api/relay_schema.rb#L35 https://github.com/gauravtiwari/relay-rails-blog/blob/master/app/api/mutations/comment_mutations.rb#L50 What do you think?

@nuclearspike Yeah, that sounds like a good idea. However, have you checked graphql-ruby pro version, it provides authorisation and some other stuff if you pay for it. So, I was...

@Ancinek Did you run `./bin/webpack-dev-server` alongside `bundle exec rails s`?