text: import { gql } from '@apollo/react-hooks';
  
  export const LOGIN_USER = gql`
    mutation login($email: String!, $password: String!) {
      login(email: $email, password: $password) {
        token
        user {
          _id
          username
          email
        }
      }
    }
  `;
  
  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 ADD_FRIEND = gql`
  mutation addFriend($id: ID!){
    addFriend(friendId: $id){
      _id
      username
      friendCount
      friends {
        _id
        username
      }
    }
  }
  `;
  
  export const ADD_POST = gql`
  mutation addPost($postText: String!){
    addPost(postText: $postText){
      _id
      postText
      createdAt
      username
      commentCount
      comments {
        _id
      }
    }
  }
  `;
  
  export const ADD_COMMENT = gql`
  mutation addComment($postId: ID!, $commentBody: String!){
    addComment(postId: $postId, commentBody: $commentBody){
      _id
      commentCount
      comments {
        _id
        commentBody
        createdAt
        username
      }
    }
  }
  `;
  export const SAVE_FOOD = gql`
    mutation saveFood($input: foodInput!) {
      saveFood(input: $input) {
        _id
        username
        email
        savedFoods {
          FoodId
          authors
          image
          description
          title
        }
      }
    }
  `;
  