Example
You can use graphql-ruby gem to quickly prototype GraphQL API. It's not the way you use that gem normally :)
Anyway please check:
It's not that hard, with JRuby you can use CDK for Java.
Please check my GitHub page