Skip to content
ztrzaskaPublic

About

A reference implementation of GraphQL for Spring boot

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A reference implementation of GraphQL for Spring boot

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages