carld / graphql-clj-starter

GraphQL starter project for Clojure with graphql-clj and GraphiQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Prepare environment

npm install

npm run build

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
  }
}

About

GraphQL starter project for Clojure with graphql-clj and GraphiQL


Languages

Language:CSS 75.4%Language:Clojure 18.9%Language:HTML 2.9%Language:JavaScript 2.7%