I tried, and I failed. Mad props to those who wrote graphQL

This commit is contained in:
2020-03-04 16:48:29 +11:00
parent 8ef1d0efbd
commit 66d8cd7630
4 changed files with 100 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ authors = authors.map(a => {
return a;
});
//get the book array
//get the books array
let books = [];
authors.forEach(a => books = books.concat(a.books));