Download spectrum/api/queries/communityMember/rootCommunityMember.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/communityMember/rootCommunityMember.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/communityMember/rootCommunityMember.js
-
curl -L -o rootCommunityMember.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/communityMember/rootCommunityMember.js
301 Bytes
| // @flow | |
| import type { GraphQLContext } from '../../'; | |
| type GetCommunityMemberArgs = { | |
| userId: string, | |
| communityId: string, | |
| }; | |
| export default ( | |
| _: any, | |
| args: GetCommunityMemberArgs, | |
| { loaders }: GraphQLContext | |
| ) => loaders.userPermissionsInCommunity.load([args.userId, args.communityId]); | |