Skip to content

Instantly share code, notes, and snippets.

@ummdorian
Created February 27, 2020 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ummdorian/1dc83c0ce3cdbc6b406833c74bc7af3d to your computer and use it in GitHub Desktop.
Save ummdorian/1dc83c0ce3cdbc6b406833c74bc7af3d to your computer and use it in GitHub Desktop.
// If we make pages themselves components that know their fields:
query {
route(path: "/news") {
path
... on EntityCanonicalUrl{
entity {
entityBundle
entityId
entityLabel
entityType
entityUuid
}
}
}
}
// Otherwise:
query {
route(path: "/news") {
path
... on EntityCanonicalUrl{
entity {
entityBundle
entityId
entityLabel
entityType
entityUuid
... on NodePage{
fieldPageContent{
entity{
...on Paragraph{
id,
uuid,
entityBundle
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment