Download spectrum/api/queries/thread/participants.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/thread/participants.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/thread/participants.js
-
curl -L -o participants.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/thread/participants.js
286 Bytes
| // @flow | |
| import type { GraphQLContext } from '../../'; | |
| import type { DBThread } from 'shared/types'; | |
| export default ({ id }: DBThread, _: any, { loaders }: GraphQLContext) => { | |
| return loaders.threadParticipants | |
| .load(id) | |
| .then(result => (result ? result.reduction : [])); | |
| }; | |