Download spectrum/shared/graphql/fragments/thread/threadParticipant.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/thread/threadParticipant.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/fragments/thread/threadParticipant.js
-
curl -L -o threadParticipant.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/fragments/thread/threadParticipant.js
556 Bytes
| // @flow | |
| import gql from 'graphql-tag'; | |
| import userInfoFragment from '../user/userInfo'; | |
| import type { UserInfoType } from '../user/userInfo'; | |
| export type ThreadParticipantType = { | |
| id: string, | |
| user: { | |
| ...$Exact<UserInfoType>, | |
| }, | |
| isMember: boolean, | |
| isModerator: boolean, | |
| isBlocked: boolean, | |
| isOwner: boolean, | |
| roles: Array<string>, | |
| }; | |
| export default gql` | |
| fragment threadParticipant on ThreadParticipant { | |
| user { | |
| ...userInfo | |
| } | |
| isMember | |
| isModerator | |
| isBlocked | |
| isOwner | |
| roles | |
| } | |
| ${userInfoFragment} | |
| `; | |