blacroix / xke-graphql

XKE solution for hands'on GraphQL in Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POC GraphQL and Kotlin

Solution for XKE Hands'On GraphQL

Stack

How To

Run:

$> ./gradlew run

Use:

http://localhost:8080/graphql?q={book(id:2){id,title,year}}
http://localhost:8080/graphql?q={book(id:2){title,year,likes,author{firstName,lastName}}}
http://localhost:8080/graphql?q={author(id:1){firstName,lastName,books{title,year}popularity}}
http://localhost:8080/graphql?q=mutation{addBook(id:9,title:"Martine fait du GraphQL",author_id:1,year:2017){id,likes}}
http://localhost:8080/graphql?q=mutation{likeBook(title:"Martine fait du GraphQL"){likes}}
http://localhost:8080/graphql?q=mutation{deleteBook(id:9){author{firstName,lastName,books{title}}}}

About

XKE solution for hands'on GraphQL in Kotlin


Languages

Language:Kotlin 100.0%