Created
June 24, 2020 02:50
-
-
Save leorcvargas/fa5225cb271339f4370fdd78e1994697 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getBookData = async (id) => { | |
const book = await getBookById(id); | |
const reviews = await getReviewsByBookId(book.id); | |
const author = await getAuthorById(book.authorId); | |
const sellers = await getSellersByBookId(book.id); | |
return { ...book, reviews, author, sellers }; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment