text: import gql from 'graphql-tag';
  
  export const LOGIN_USER = gql`
      mutation loginUser($email: String!, $password: String!){
          loginUser(email: $email, password: $password){
          token
          user{
              _id
              username
          }
          }
      }
  `;
  
  export const ADD_USER = gql`
      mutation addUser($username: String!, $email: String!, $password: String!){
          addUser(username: $username, email: $email, password: $password){
          token
          user{
              _id
              username
          }
          }
      }
  `;
  
  export const SAVE_BOOK = gql`
      mutation saveBook($input: BookInput!){
          saveBook(input: $input){
              _id
              username
              email
              savedBooks {
                  bookId
                  title
                  description
                  link
                  authors
              }
          }
      }
  `;
  
  export const REMOVE_BOOK = gql`
      mutation removeBook($bookId: String!){
          removeBook(bookId: $bookId){
              _id
              username
              email
              savedBooks {
                  bookId
                  title
                  description
                  link
                  authors
              }
          }
      }
  `;