This sample application is developed to understand basic concepts of GraphQL. In memory H2 database was used for storage.
Learning Materials:
query {
employee(employeeId: 1){
firstName
}
}
query {
employeeByFirstName(firstName: "E"){
employeeId
firstName
lastName
}
}
query{
employeeByFirstName(firstName: "E"){
employeeId
firstName
lastName
address{
city
state
country
}
}
query{
city(city: "ABC"){
city
state
}
}
query{
employeeByFirstName(firstName: "E"){
employeeId
firstName
lastName
address{
city
state
country
}
}
city(city: "ABC"){
city
state
}
}
mutation{
addEmployee(employeeId: 1, firstName: "G", lastName: "U", department: "WM"){
firstName
}
}
URL: ws://localhost:8080/subscription
subscription NewEmployeeSubscription{
newEmployee{
employeeId
}
}