Download spectrum/shared/graphql/mutations/community/deleteCommunity.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/mutations/community/deleteCommunity.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/mutations/community/deleteCommunity.js
-
curl -L -o deleteCommunity.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/mutations/community/deleteCommunity.js
583 Bytes
| // @flow | |
| import gql from 'graphql-tag'; | |
| import { graphql } from 'react-apollo'; | |
| export type DeleteCommunityType = { | |
| data: { | |
| deleteCommunity: boolean, | |
| }, | |
| }; | |
| export const deleteCommunityMutation = gql` | |
| mutation deleteCommunity($communityId: ID!) { | |
| deleteCommunity(communityId: $communityId) | |
| } | |
| `; | |
| const deleteCommunityOptions = { | |
| props: ({ mutate }) => ({ | |
| deleteCommunity: (communityId: string) => | |
| mutate({ | |
| variables: { | |
| communityId, | |
| }, | |
| }), | |
| }), | |
| }; | |
| export default graphql(deleteCommunityMutation, deleteCommunityOptions); | |