Download spectrum/api/queries/community/profilePhoto.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/community/profilePhoto.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/community/profilePhoto.js
-
curl -L -o profilePhoto.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/community/profilePhoto.js
304 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 { profilePhoto } = signCommunity(community); | |
| return profilePhoto; | |
| }; | |