import gql from 'graphql-tag';

export default gql`
  mutation createChannelMutation($title: String!) {
    create_channel(input: { title: $title }) {
      channel {
        id: slug
        href
        title
      }
    }
  }
`;

import gql from 'graphql-tag';

export default gql`
  mutation createChannelMutation($title: String!, $visibility: ChannelVisibility = PRIVATE) {
    create_channel(input: { title: $title, visibility: $visibility }) {
      channel {
        id: slug
        href
        title
      }
    }
  }
`;

Make channel private by default
Make channel private by default
