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