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