Skip to content

Instantly share code, notes, and snippets.

@cesarmiquel
Created August 31, 2020 23:05
Show Gist options
  • Save cesarmiquel/bdde495206c36a2d66251e210b155c3a to your computer and use it in GitHub Desktop.
Save cesarmiquel/bdde495206c36a2d66251e210b155c3a to your computer and use it in GitHub Desktop.
GraphQL - Drupal - Menu query
#
# Query 'main' menu
#
query {
mainMenu:menuByName(name:"main") {
links {
label
expanded
url {
path
}
children:links {
label
url {
path
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment