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