mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
961 B
52 lines
961 B
6 years ago
|
# ===============================================
|
||
|
# NAVIGATION
|
||
|
# ===============================================
|
||
|
|
||
|
extend type Query {
|
||
|
navigation: NavigationQuery
|
||
|
}
|
||
|
|
||
|
extend type Mutation {
|
||
|
navigation: NavigationMutation
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# QUERIES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type NavigationQuery {
|
||
|
tree: [NavigationItem]!
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# MUTATIONS
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type NavigationMutation {
|
||
|
updateTree(
|
||
|
tree: [NavigationItemInput]!
|
||
|
): DefaultResponse
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# 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
|
||
|
}
|