old_contents: import gql from 'graphql-tag'
  
  export const ALL_LINKS_QUERY = gql`
    query AllLinksQuery {
      allLinks {
        id
        createdAt
        url
        description
        postedBy {
          id
          name
        }
        votes {
          id
          user {
            id
          }
        }
      }
    }
  `
  
  export const CREATE_LINK_MUTATION = gql`
    mutation CreateLinkMutation($description: String!, $url: String!, $postedById: ID!) {
      createLink(
        description: $description,
        url: $url,
        postedById: $postedById
      ) {
        id
        createdAt
        url
        description
        postedBy {
          id
          name
        }
        votes {
          id
          user {
            id
          }
        }
      }
    }
  `
  
  export const CREATE_USER_MUTATION = gql`
    mutation CreateUserMutation($name: String!, $email: String!, $password: String!) {
  
      createUser(
        name: $name,
        authProvider: {
          email: {
            email: $email,
            password: $password
          }
        }
      ) {
        id
      }
  
      signinUser(email: {
        email: $email,
        password: $password
      }) {
        token
        user {
          id
        }
      }
  
    }
  `
  
  export const SIGNIN_USER_MUTATION = gql`
    mutation SigninUserMutation($email: String!, $password: String!) {
      signinUser(email: {
        email: $email,
        password: $password
      }) {
        token
        user {
          id
        }
      }
    }
  `
  
  export const CREATE_VOTE_MUTATION = gql`
    mutation CreateVoteMutation($userId: ID!, $linkId: ID!) {
      createVote(userId: $userId, linkId: $linkId) {
        id
        link {
          votes {
            id
            user {
              id
            }
          }
        }
        user {
          id
        }
      }
    }
  `
  
new_contents: import gql from 'graphql-tag'
  
  export const ALL_LINKS_QUERY = gql`
    query AllLinksQuery {
      allLinks {
        id
        createdAt
        url
        description
        postedBy {
          id
          name
        }
        votes {
          id
          user {
            id
          }
        }
      }
    }
  `
  
  export const CREATE_LINK_MUTATION = gql`
    mutation CreateLinkMutation($description: String!, $url: String!, $postedById: ID!) {
      createLink(
        description: $description,
        url: $url,
        postedById: $postedById
      ) {
        id
        createdAt
        url
        description
        postedBy {
          id
          name
        }
      }
    }
  `
  
  export const CREATE_USER_MUTATION = gql`
    mutation CreateUserMutation($name: String!, $email: String!, $password: String!) {
  
      createUser(
        name: $name,
        authProvider: {
          email: {
            email: $email,
            password: $password
          }
        }
      ) {
        id
      }
  
      signinUser(email: {
        email: $email,
        password: $password
      }) {
        token
        user {
          id
        }
      }
  
    }
  `
  
  export const SIGNIN_USER_MUTATION = gql`
    mutation SigninUserMutation($email: String!, $password: String!) {
      signinUser(email: {
        email: $email,
        password: $password
      }) {
        token
        user {
          id
        }
      }
    }
  `
  
  export const CREATE_VOTE_MUTATION = gql`
    mutation CreateVoteMutation($userId: ID!, $linkId: ID!) {
      createVote(userId: $userId, linkId: $linkId) {
        id
        link {
          votes {
            id
            user {
              id
            }
          }
        }
        user {
          id
        }
      }
    }
  `
  
subject: remove votes from create mutation payload