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