Treat email and news posts as distinct types on the frontend and backend
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
query ShowThreadQuery($threadId: String!) {
|
||||
thread(threadId: $threadId) {
|
||||
__typename ... on NewsPost{
|
||||
threadId
|
||||
slug
|
||||
site
|
||||
title
|
||||
body
|
||||
url
|
||||
timestamp
|
||||
# TODO: unread
|
||||
}
|
||||
__typename ... on EmailThread{
|
||||
threadId,
|
||||
subject
|
||||
|
||||
Reference in New Issue
Block a user