// @flow import gql from 'graphql-tag'; import threadParticipantFragment from '../thread/threadParticipant'; import type { ThreadParticipantType } from '../thread/threadParticipant'; export type MessageInfoType = { id: string, timestamp: string, messageType: string, modifiedAt: string, bot?: boolean, parent: { id: string, timestamp: Date, messageType: string, author: { ...$Exact, }, content: { body: string, }, }, author: { ...$Exact, }, reactions: { count: number, hasReacted: boolean, }, content: { body: string, }, }; export default gql` fragment messageInfo on Message { id timestamp modifiedAt messageType bot parent { id timestamp messageType author { ...threadParticipant } content { body } } author { ...threadParticipant } reactions { count hasReacted } content { body } } ${threadParticipantFragment} `;