Download spectrum/shared/graphql/fragments/channel/channelThreadConnection.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 730 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/channel/channelThreadConnection.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/fragments/channel/channelThreadConnection.js
-
curl -L -o channelThreadConnection.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/channel/channelThreadConnection.js
730 Bytes
| // @flow | |
| import gql from 'graphql-tag'; | |
| import threadInfoFragment from '../thread/threadInfo'; | |
| import type { ThreadInfoType } from '../thread/threadInfo'; | |
| type Edge = { | |
| cursor: string, | |
| node: { | |
| ...$Exact<ThreadInfoType>, | |
| }, | |
| }; | |
| export type ChannelThreadConnectionType = { | |
| threadConnection: { | |
| pageInfo: { | |
| hasNextPage: boolean, | |
| hasPreviousPage: boolean, | |
| }, | |
| edges: Array<?Edge>, | |
| }, | |
| }; | |
| export default gql` | |
| fragment channelThreadConnection on Channel { | |
| threadConnection(first: 10, after: $after) { | |
| pageInfo { | |
| hasNextPage | |
| hasPreviousPage | |
| } | |
| edges { | |
| cursor | |
| node { | |
| ...threadInfo | |
| } | |
| } | |
| } | |
| } | |
| ${threadInfoFragment} | |
| `; | |