BookModel handle with Book Database Collection interactions.
Extends
Methods
-
inner addingChapterToList(bookId, chapterId) → {object}
-
Book AddingChapterToList Method. Query this.Schema pushing new chapter to list. When this promise is resolved this method retrieves the Object update in MongoDB.
Parameters:
Name Type Description bookId
String chapterId
Object Chapter Object ID Returns:
object - Return a promise to who intend to update data.