Selected fields to return from a GraphQL query
The last part of the GraphQL query specifies which fields you want to see returned.
Take a look at the basic structure of the GraphQL query (this works the same for a
componentPresentations() call):
{
items(
filter {
FILTEREXPRESSION
},
sort: {
SORTEXPRESSION
}
) {
RETURNEDFIELDS
}
In this query, set RETURNEDFIELDS to the actual field or fields you want to see returned. For example, to get the ID, type and title of each item back, as well as a cursor for pagination purposes, set RETURNEDFIELDS to:
edges {
cursor
node {
itemId
itemType
title
}
}