generated from pascalmartineau/wp-skeleton
refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
This commit is contained in:
19
wp-content/themes/ccat/app/graphql/menuItems.gql
Normal file
19
wp-content/themes/ccat/app/graphql/menuItems.gql
Normal file
@@ -0,0 +1,19 @@
|
||||
fragment MenuItem on MenuItem {
|
||||
id
|
||||
label
|
||||
to: path
|
||||
target
|
||||
}
|
||||
|
||||
query menuItems($location: MenuLocationEnum!) {
|
||||
menuItems(where: {location: $location, parentDatabaseId: 0}) {
|
||||
nodes {
|
||||
...MenuItem
|
||||
childItems {
|
||||
nodes {
|
||||
...MenuItem
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user