StudentModel

StudentModel handle with Student Database Collection interactions.

Extends

Methods

inner addingBookToList(userLogin, bookId) → {object}

Student AddingBookToList Method. Query this.Schema pushing new book to list. When this promise is resolved this method retrieves the Object update in MongoDB.
Parameters:
Name Type Description
userLogin String
bookId Object Book Object ID
Returns:
object - Return a promise to who intend to update data.