Skip to content

u4bi-sev/clojure-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

clojure graphql

server

lein ring server

client(CORS)

http://127.0.0.1:5500/client/index.html

API

Field Schema QUERY
user RootQuery { user (id : "1") { id } }
users RootQuery { users { id, name, email, age } }
addUser Mutation mutation{ addUser( name : "", email : "", age : 13){ id } }
updateUser Mutation mutation{ updateUser(id : "1" , name : "", email : "", age : 15 ){ id } }
removeUser Mutation mutation{ removeUser(id : "1"){ id } }

Schema

User {
    "id"    : "String",
    "name"  : "String",
    "email" : "String",
    "age"   : "Number"
}

requirements

  • ring
  • compojure
  • ring-cors
  • graphql-clj
  • axios (client)