Created
March 22, 2024 10:13
-
-
Save moo2u2/3f16a32ec0e60588e996433ba89a582f to your computer and use it in GitHub Desktop.
Simple way to fetch children of a given datasource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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