Download spectrum/api/queries/communityMember/user.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/communityMember/user.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/communityMember/user.js
-
curl -L -o user.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/communityMember/user.js
288 Bytes
| // @flow | |
| import type { DBUsersCommunities } from 'shared/types'; | |
| import type { GraphQLContext } from '../../'; | |
| export default async ( | |
| { userId }: DBUsersCommunities, | |
| _: any, | |
| { loaders }: GraphQLContext | |
| ) => { | |
| if (userId) return await loaders.user.load(userId); | |
| return null; | |
| }; | |