GraphQL starter project for Clojure with graphql-clj and GraphiQL
Switch branches/tags
Nothing to show
Clone or download
tendant Merge pull request #3 from victorvoid/master
fixed version to graphql-clj
Latest commit 98ac41e Nov 2, 2017

README.md

This project is a Demo project for graphql-clj and GraphiQL. You can start trying Clojure with GraphQL in a few minutes.

This project was bootstrapped with Create React App.

Start server

lein ring server-headless

Access graphiql from

http://localhost:3002/index.html

Sample queries

query {
  human (id:"1002") {
    id
    name
    friends {
      id
      name
      friends {
        id
      }
    }
  }
}

Sample mutations

mutation{
  createHuman (name:"testname", friends:[]) {
    id
  }
}

Build Application (HTML & JS)

Note: Not required, unless you want to make changes to Javascript code

npm install

npm run build