Skip to content

Instantly share code, notes, and snippets.

@moo2u2
Created March 22, 2024 10:19
Show Gist options
  • Save moo2u2/f30a97fa281c0f07efe40f2294f8eff0 to your computer and use it in GitHub Desktop.
Save moo2u2/f30a97fa281c0f07efe40f2294f8eff0 to your computer and use it in GitHub Desktop.
query MyQuery($datasource: String!, $language: String!) {
datasource: item(path: $datasource, language: $language) {
# List 20 children of given template under given datasource
children(
first: 20
includeTemplateIDs: "{A6DDAC75-7D24-4BDB-B3F6-5F47FBB21379}"
# after: "endCursor" (see endCursor below)
# hasLayout: true
)
{
pageInfo {
hasNext
endCursor
}
results {
id
name
field(name: "MyCustomField") {
jsonValue
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment