Skip to content

Instantly share code, notes, and snippets.

@patarkf
Created June 10, 2017 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patarkf/41e7444c7fcc605ded04d8808f16fd7a to your computer and use it in GitHub Desktop.
Save patarkf/41e7444c7fcc605ded04d8808f16fd7a to your computer and use it in GitHub Desktop.
const posts = [{}, {}, {}];
async function insertPosts(posts) {
posts.forEach(post => {
await db.insert(post);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment