Created
March 22, 2024 10:19
-
-
Save moo2u2/f30a97fa281c0f07efe40f2294f8eff0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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