navigation.graphql 685 B

1234567891011121314151617181920212223242526272829303132333435
  1. # ===============================================
  2. # NAVIGATION
  3. # ===============================================
  4. extend type Query {
  5. navigationById(
  6. id: UUID!
  7. ): [NavigationItem]
  8. }
  9. # -----------------------------------------------
  10. # MUTATIONS
  11. # -----------------------------------------------
  12. extend type Mutation {
  13. updateNavigation(
  14. id: UUID!
  15. name: String!
  16. items: [JSON]!
  17. ): DefaultResponse
  18. }
  19. # -----------------------------------------------
  20. # TYPES
  21. # -----------------------------------------------
  22. type NavigationItem {
  23. id: UUID
  24. type: String
  25. label: String
  26. icon: String
  27. target: String
  28. openInNewWindow: Boolean
  29. children: [NavigationItem]
  30. }