Skip to content

A reference implementation of GraphQL for Spring boot

Notifications You must be signed in to change notification settings

ztrzaska/graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A reference implementation of GraphQL for Spring boot

Getting Started

The following application illustrate simple functionalities with graphQL API. It has queries and mutations. Default queries are written to playground.

At dedicated branches there are integration with two different graphql libraries, graphql-java-kickstart and spring for graphql.

Playground

http://localhost:9001/playground

Voyager

http://localhost:9001/voyager

Curl

curl  --url http://localhost:9001/graphql -H 'Accept:application/json' --data-binary "{\"query\": \"query { books { id name }}\", \"variables\" : {}}"

Uploading file to server

curl -v -F operations="{\"query\": \"mutation { uploadFile }\", \"variables\" : {}}" -F upload=@D:/a.txt http://localhost:9001/graphql

Documentation of the libraries used

Releases

No releases published

Packages

No packages published