book-search's People
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.