role.api.graphql 522 B

12345678910111213141516171819202122232425262728
  1. type Query {
  2. roles(options: RoleListOptions): RoleList!
  3. role(id: ID!): Role
  4. }
  5. type Mutation {
  6. "Create a new Role"
  7. createRole(input: CreateRoleInput!): Role!
  8. "Update an existing Role"
  9. updateRole(input: UpdateRoleInput!): Role!
  10. }
  11. # generated by generateListOptions function
  12. input RoleListOptions
  13. input CreateRoleInput {
  14. code: String!
  15. description: String!
  16. permissions: [Permission!]!
  17. }
  18. input UpdateRoleInput {
  19. id: ID!
  20. code: String
  21. description: String
  22. permissions: [Permission!]
  23. }