Download spectrum/api/queries/thread/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 951 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/thread/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/thread/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/thread/index.js
951 Bytes
| // @flow | |
| import thread from './rootThread'; | |
| import attachments from './attachments'; | |
| import channel from './channel'; | |
| import community from './community'; | |
| import participants from './participants'; | |
| import isAuthor from './isAuthor'; | |
| import isCreator from './isCreator'; // deprecated | |
| import messageConnection from './messageConnection'; | |
| import author from './author'; | |
| import creator from './creator'; | |
| import content from './content'; | |
| import reactions from './reactions'; | |
| import metaImage from './metaImage'; | |
| import editedBy from './editedBy'; | |
| import type { DBThread } from 'shared/types'; | |
| module.exports = { | |
| Query: { | |
| thread, | |
| }, | |
| Thread: { | |
| attachments, | |
| channel, | |
| community, | |
| participants, | |
| isAuthor, | |
| isCreator, // deprcated | |
| messageConnection, | |
| author, | |
| creator, // deprecated | |
| content, | |
| reactions, | |
| metaImage, | |
| messageCount: ({ messageCount }: DBThread) => messageCount || 0, | |
| editedBy, | |
| }, | |
| }; | |