Add webmvc-http-security

Closes gh-58
This commit is contained in:
Rob Winch
2021-06-22 17:12:42 -05:00
parent 5822f7d357
commit 7d854dbf47
14 changed files with 488 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
management.endpoints.web.exposure.include=health,metrics,info
spring.graphql.schema.printer.enabled=true

View File

@@ -0,0 +1,22 @@
type Query {
employees: [Employee]
}
type Mutation {
# restricted
updateSalary(input: UpdateSalaryInput!): UpdateSalaryPayload
}
type Employee {
id: ID!
name: String
# restricted
salary: String
}
input UpdateSalaryInput {
employeeId: ID!
salary: String!
}
type UpdateSalaryPayload {
success: Boolean!
employee: Employee
}