letterbox/web/graphql/show_thread.graphql
Bill Thiede 760cec01a8 Refactor thread responses into an enum.
Lays ground work for different types of views, i.e. email, news, docs, etc.
2024-08-26 21:48:53 -07:00

57 lines
912 B
GraphQL

query ShowThreadQuery($threadId: String!) {
thread(threadId: $threadId) {
__typename ... on EmailThread{
threadId,
subject
messages {
id
subject
tags
from {
name
addr
}
to {
name
addr
}
cc {
name
addr
}
timestamp
body {
__typename
... on UnhandledContentType {
contents
contentTree
}
... on PlainText {
contents
contentTree
}
... on Html {
contents
contentTree
}
}
path
attachments {
id
idx
filename
contentType
contentId
size
}
}
}
}
tags {
name
bgColor
fgColor
unread
}
}