Download spectrum/api/queries/thread/content.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/thread/content.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/thread/content.js
-
curl -L -o content.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/thread/content.js
341 Bytes
| // @flow | |
| import type { GraphQLContext } from '../../'; | |
| import type { DBThread } from 'shared/types'; | |
| import { signThread } from 'shared/imgix'; | |
| export default (thread: DBThread, _: any, ctx: GraphQLContext) => { | |
| const signedThread = signThread(thread); | |
| return { | |
| ...signedThread.content, | |
| body: signedThread.content.body, | |
| }; | |
| }; | |