Skip to content

Instantly share code, notes, and snippets.

@ummdorian
Last active February 18, 2020 22:25
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/f5eca4a020fde9fe31701908df018101 to your computer and use it in GitHub Desktop.
Save ummdorian/f5eca4a020fde9fe31701908df018101 to your computer and use it in GitHub Desktop.
query {
nodeQuery(
filter: {
conditions: [
{
operator: EQUAL,
field: "type",
value: ["page"]
},
{
operator: EQUAL,
field: "field_page_location",
value: ["/"]
}
]
}
)
{
entities {
entityId,
entityUuid,
...on Node{
title
}
...on NodePage{
fieldPageContent{
entity{
...on Paragraph{
id,
uuid,
entityBundle
}
}
}
}
}
}
}
@ummdorian
Copy link
Author

NOTE: the filter { operator: EQUAL, field: "field_page_location", value: ["/"] } can have the value changed to filter by any route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment