GraphJin is a service that instantly and without code gives you a high performance and secure GraphQL API. Your GraphQL queries are auto translated into a single fast SQL query. No more spending weeks or months writing backend API code. Just make the query you need and GraphJin will do the rest.

GraphJin has a rich feature set like integrating with your existing Ruby on Rails apps, joining your DB with data from remote APIs, Role and Attribute based access control, Support for JWT tokens, DB migrations, seeding and a lot more.


  • Complex nested queries and mutations
  • Build realtime apps with subscriptions
  • Instant infinite scroll, feeds, nested comments, etc
  • Auto learns database tables and relationships
  • Role and Attribute-based access control
  • Opaque cursor-based efficient pagination
  • Full-text search and aggregations
  • JWT tokens supported (Auth0, etc)
  • Join database queries with remote REST APIs
  • Also works with existing Ruby-On-Rails apps
  • Rails authentication supported (Redis, Memcache, Cookie)
  • A simple config file
  • High performance Go codebase
  • Tiny docker image and low memory requirements
  • Fuzz tested for security
  • Database migrations tool
  • Database seeding tool
  • Works with Postgres and Yugabyte DB
  • OpenCensus Support: Zipkin, Prometheus, X-Ray, Stackdriver
  • Highly scalable and fast

Try the demo app#

# clone the repository
git clone
# goto our example ecommerce app
cd examples/webshop
# create, migrate and seed the database
docker-compose run api db:setup
# start the demo
docker-compose up
# try graphql queries on our web ui with auto-complete
open http://localhost:8080

This demo requires docker you can either install it using brew or from the docker website


We fully support queries and mutations. For example the below GraphQL query would fetch two products that belong to the current user where the price is greater than 10.

GraphQL Query#

query {
users {
picture: avatar
products(limit: 2, where: { price: { gt: 10 } }) {

JSON Result#

"data": {
"users": [
"id": 1,
"email": "",
"picture": "",
"full_name": "Edwin Orn",
"products": [
"id": 16,
"name": "Sierra Nevada Style Ale",
"description": "Belgian Abbey, 92 IBU, 4.7%, 17.4°Blg",
"price": 16.47
Set User ID

In development mode you can use the X-User-ID: 4 header to set a user id so you don't have to worries about cookies etc. This can be set using the HTTP Headers tab at the bottom of the web UI.

GraphQL Mutation#

In another example the below GraphQL mutation would insert a product into the database. The first part of the below example is the variable data and the second half is the GraphQL mutation. For mutations data has to always ben passed as a variable.

"data": {
"name": "Art of Computer Programming",
"description": "The Art of Computer Programming (TAOCP) is a comprehensive monograph written by computer scientist Donald Knuth",
"price": 30.5
mutation {
product(insert: $data) {

Built-in GraphQL Editor#

Quickly craft and test your queries with a full-featured GraphQL editor. Auto-complete and schema documentation is automatically available.

Zipkin Traces