Add webmvc-http-security
Closes gh-58
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
management.endpoints.web.exposure.include=health,metrics,info
|
||||
|
||||
spring.graphql.schema.printer.enabled=true
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user