Download spectrum/shared/graphql/fragments/user/userChannelConnection.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/user/userChannelConnection.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/fragments/user/userChannelConnection.js
-
curl -L -o userChannelConnection.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/user/userChannelConnection.js
666 Bytes
| // @flow | |
| import gql from 'graphql-tag'; | |
| import channelInfoFragment from '../channel/channelInfo'; | |
| import type { ChannelInfoType } from '../channel/channelInfo'; | |
| type Edge = { | |
| node: { | |
| ...$Exact<ChannelInfoType>, | |
| }, | |
| }; | |
| export type UserChannelConnectionType = { | |
| channelConnection: { | |
| pageInfo: { | |
| hasNextPage: boolean, | |
| hasPreviousPage: boolean, | |
| }, | |
| edges: Array<?Edge>, | |
| }, | |
| }; | |
| export default gql` | |
| fragment userChannels on User { | |
| channelConnection { | |
| pageInfo { | |
| hasNextPage | |
| hasPreviousPage | |
| } | |
| edges { | |
| node { | |
| ...channelInfo | |
| } | |
| } | |
| } | |
| } | |
| ${channelInfoFragment} | |
| `; | |