Download spectrum/shared/graphql/fragments/message/messageInfo.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/message/messageInfo.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/fragments/message/messageInfo.js
-
curl -L -o messageInfo.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/message/messageInfo.js
1.09 kB
| // @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<ThreadParticipantType>, | |
| }, | |
| content: { | |
| body: string, | |
| }, | |
| }, | |
| author: { | |
| ...$Exact<ThreadParticipantType>, | |
| }, | |
| 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} | |
| `; | |