Created
June 10, 2017 20:39
-
-
Save patarkf/bdca5c8497960704ea3acf9cbe0387b2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 posts = [{}, {}, {}]; | |
async function insertPosts(posts) { | |
posts.forEach(async post => { | |
const postId = await db.insert(post); | |
console.log(postId); | |
}); | |
// Not finished here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment