feat: browse nav + pageTree ancestors
This commit is contained in:
@@ -16,6 +16,7 @@ extend type Mutation {
|
||||
|
||||
type NavigationQuery {
|
||||
tree: [NavigationTree]!
|
||||
config: NavigationConfig!
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
@@ -26,6 +27,9 @@ type NavigationMutation {
|
||||
updateTree(
|
||||
tree: [NavigationTreeInput]!
|
||||
): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
|
||||
updateConfig(
|
||||
mode: NavigationMode!
|
||||
): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
@@ -59,3 +63,13 @@ input NavigationItemInput {
|
||||
targetType: String
|
||||
target: String
|
||||
}
|
||||
|
||||
type NavigationConfig {
|
||||
mode: NavigationMode!
|
||||
}
|
||||
|
||||
enum NavigationMode {
|
||||
NONE
|
||||
TREE
|
||||
MIXED
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ type PageQuery {
|
||||
parent: Int
|
||||
mode: PageTreeMode!
|
||||
locale: String!
|
||||
includeParents: Boolean
|
||||
includeAncestors: Boolean
|
||||
): [PageTreeItem] @auth(requires: ["manage:system", "read:pages"])
|
||||
|
||||
links(
|
||||
|
Reference in New Issue
Block a user