Spring boot and GraphQL Playground
Run the application using gradle bootRun
Open http://localhost:8080/graphiql
in browser
{
employees {
id
name
salary
}
}
and inside REQUEST HEADERS
{
"Authorization": "Basic YWRtaW46YWRtaW4="
}
Response :
{
"data": {
"employees": [
{
"id": "1",
"name": "Andi",
"salary": "42"
}
]
}
}
gradle build
gradle jibDockerBuild
docker run -d -p 8080:8080 ashutoshsahoo/gs-graphql
docker ps
docker stop <container-id>
docker rm <container-id>
For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely:
These additional references should also help you: