In a sense, not where you might expect it within the query structure, but within the comment text body, there is a field attachments
that can expand to the id
and other file metadata. The id can then in turn be retrieved as a file from the server
{
comments(streamId: "YOUR_STREAM_ID") {
items {
id
text {
attachments {
id
fileName
}
}
}
}
}
I have a fuller explanation of this over here: GraphQL get attachment from comment - #2 by jonathon