Skip to content

Instantly share code, notes, and snippets.

@moo2u2
Created March 22, 2024 10:13
Show Gist options
  • Save moo2u2/3f16a32ec0e60588e996433ba89a582f to your computer and use it in GitHub Desktop.
Save moo2u2/3f16a32ec0e60588e996433ba89a582f to your computer and use it in GitHub Desktop.
Simple way to fetch children of a given datasource
query MyQuery($datasource: String!, $language: String!) {
datasource: item(path: $datasource, language: $language) {
# List children of given datasource
children {
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