Download spectrum/shared/graphql/fragments/thread/threadMessageConnection.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/thread/threadMessageConnection.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/fragments/thread/threadMessageConnection.js
-
curl -L -o threadMessageConnection.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/thread/threadMessageConnection.js
838 Bytes
| // @flow | |
| import gql from 'graphql-tag'; | |
| import messageInfoFragment from '../message/messageInfo'; | |
| import type { MessageInfoType } from '../message/messageInfo'; | |
| type Edge = { | |
| cursor: string, | |
| node: { | |
| ...$Exact<MessageInfoType>, | |
| }, | |
| }; | |
| export type ThreadMessageConnectionType = { | |
| messageConnection: { | |
| pageInfo: { | |
| hasNextPage: boolean, | |
| hasPreviousPage: boolean, | |
| }, | |
| edges: Array<Edge>, | |
| }, | |
| }; | |
| export default gql` | |
| fragment threadMessageConnection on Thread { | |
| messageConnection( | |
| after: $after | |
| first: $first | |
| before: $before | |
| last: $last | |
| ) (key: "messageConnection") { | |
| pageInfo { | |
| hasNextPage | |
| hasPreviousPage | |
| } | |
| edges { | |
| cursor | |
| node { | |
| ...messageInfo | |
| } | |
| } | |
| } | |
| } | |
| ${messageInfoFragment} | |
| `; | |