Skip to content

Instantly share code, notes, and snippets.

@calindotgabriel
Created March 11, 2019 13:56
Show Gist options
  • Save calindotgabriel/cb73487dfd0a042c07adefdd4babbffc to your computer and use it in GitHub Desktop.
Save calindotgabriel/cb73487dfd0a042c07adefdd4babbffc to your computer and use it in GitHub Desktop.
export const pageQuery = graphql`
query {
allWordpressWpApiMenusMenusItems {
edges {
node {
items {
title
url
}
}
}
}
}
`;
// EQUIVALENT TO:
export const pageQuery = graphql("
query {
allWordpressWpApiMenusMenusItems {
edges {
node {
items {
title
url
}
}
}
}
}
");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment