Constructor
new EditionController()
Create a edition controller.
- Source:
Methods
(async) byBook(bookId) → {Promise:.<Array:.<object:>>}
Get editions by book.
Parameters:
| Name | Type | Description |
|---|---|---|
bookId |
number |
- Source:
Returns:
(async) byISBN(isbn) → {Promise:.<object:>}
Get an edition by ISBN.
Parameters:
| Name | Type | Description |
|---|---|---|
isbn |
object |
- Source:
Returns:
(async) byId(id) → {Promise:.<object:>}
Get an edition by id.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number |
- Source:
Returns:
(async) insert(bookId, isbn10, isbn13) → {Promise:.<object:>}
Insert a new edition.
Parameters:
| Name | Type | Description |
|---|---|---|
bookId |
number | |
isbn10 |
string | |
isbn13 |
string |
- Source: