text: const { gql } = require('apollo-server-express');
  
  const typeDefs = gql`
    type User {
      _id: ID
      username: String
      email: String
      password: String
      savedBooks: [Book]
      bookCount: Int
    }
  
    type Book {
      bookId: ID!
      authors: [String]
      description: String
      image: String
      link: String
      title: String!
    }
  
    input InputBook {
      bookId: ID!
      authors: [String]
      description: String
      image: String
      link: String
      title: String!
    }
  
    type Comment {
      _id: ID
      commentText: String
      commentAuthor: String
      createdAt: String
    }
  
    type Auth {
      token: ID!
      user: User
    }
  
    type Query {
      users: [User]
      user(username: String!): User
      books(username: String): [Book]
      book(bookId: ID!): Book
      me: User
    }
  
    type Mutation {
      addUser(username: String!, email: String!, password: String!): Auth
      login(email: String!, password: String!): Auth
      saveBook(bookData: InputBook): User
      addComment(bookId: ID!, commentText: String!): Book
      removeBook(bookId: ID!): Book
      removeComment(bookId: ID!, commentId: ID!): Book
    }
  `;
  
  module.exports = typeDefs;
  