Code Monkey home page Code Monkey logo

book-search's People

Contributors

johnbanas avatar

Watchers

 avatar

book-search's Issues

Mutations

Description

  • LOGIN_USER will execute the loginUser mutation set up using Apollo Server.
  • ADD_USER will execute the addUser mutation.
  • SAVE_BOOK will execute the saveBook mutation.
  • REMOVE_BOOK will execute the removeBook mutation.

Schemas Directory

Description

  • Define the query and mutation functionality to work with the Mongoose models
  • Define the necessary Query and Mutation types:
  • Query type:
  • me: Which returns a User type.
  • Mutation type:
  • login: Accepts an email and password as parameters; returns an Auth type.

  • addUser: Accepts a username, email, and password as parameters; returns an Auth type.

  • saveBook: Accepts a book author's array, description, title, bookId, image, and link as parameters; returns a User type. (Look into creating what's known as an input type to handle all of these parameters!)

  • removeBook: Accepts a book's bookId as a parameter; returns a User type.

  • User type:
  • _id

  • username

  • email

  • bookCount

  • savedBooks (This will be an array of the Book type.)

  • Book type:
  • bookId (Not the _id, but the book's id value returned from Google's Book API.)

  • authors (An array of strings, as there may be more than one author.)

  • description

  • title

  • image

  • link

  • Auth type:
  • token

  • user (References the User type.)

Queries.js

Description

  • This will hold the query GET_ME, which will execute the me query set up using Apollo Server.

Apollo Server

Description

  • Implement the Apollo Server and apply it to the Express server as middleware.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.