52 lines
		
	
	
		
			1017 B
		
	
	
	
		
			GraphQL
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1017 B
		
	
	
	
		
			GraphQL
		
	
	
	
	
	
| # ===============================================
 | |
| # NAVIGATION
 | |
| # ===============================================
 | |
| 
 | |
| extend type Query {
 | |
|   navigation: NavigationQuery
 | |
| }
 | |
| 
 | |
| extend type Mutation {
 | |
|   navigation: NavigationMutation
 | |
| }
 | |
| 
 | |
| # -----------------------------------------------
 | |
| # QUERIES
 | |
| # -----------------------------------------------
 | |
| 
 | |
| type NavigationQuery {
 | |
|   tree: [NavigationItem]!
 | |
| }
 | |
| 
 | |
| # -----------------------------------------------
 | |
| # MUTATIONS
 | |
| # -----------------------------------------------
 | |
| 
 | |
| type NavigationMutation {
 | |
|   updateTree(
 | |
|     tree: [NavigationItemInput]!
 | |
|   ): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
 | |
| }
 | |
| 
 | |
| # -----------------------------------------------
 | |
| # TYPES
 | |
| # -----------------------------------------------
 | |
| 
 | |
| type NavigationItem {
 | |
|   id: String!
 | |
|   kind: String!
 | |
|   label: String
 | |
|   icon: String
 | |
|   targetType: String
 | |
|   target: String
 | |
| }
 | |
| 
 | |
| input NavigationItemInput {
 | |
|   id: String!
 | |
|   kind: String!
 | |
|   label: String
 | |
|   icon: String
 | |
|   targetType: String
 | |
|   target: String
 | |
| }
 |