Skip to content

ashutoshsahoo/gs-graphql-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot with GraphQL (GraphQL Playground)

Getting Started

Run application

  • Run the application using gradle bootRun

  • Open http://localhost:8080/graphiql in browser

Test Application

  • Query Employee
{
    employees {
        id
        name
        salary
    }
}

and inside REQUEST HEADERS

{
  "Authorization": "Basic YWRtaW46YWRtaW4="
}

Response :

{
  "data": {
    "employees": [
      {
        "id": "1",
        "name": "Andi",
        "salary": "42"
      }
    ]
  }
}

Run application inside docker

gradle build
gradle jibDockerBuild
docker run -d -p 8080:8080 ashutoshsahoo/gs-graphql
docker ps
docker stop <container-id> 
docker rm <container-id>

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you: