Skip to content

Instantly share code, notes, and snippets.

@prakashthegyan
Created February 8, 2020 07:29
Embed
What would you like to do?
import datetime
new_posts = [{"name": "Mike",
"username": "latestpost!",
"date": datetime.datetime(2009, 11, 12, 11, 14)},
{"name": "Eliot",
"title": "onceAgain",
"text": "and pretty easy too!",
"date": datetime.datetime(2009, 11, 10, 10, 45)}]
final = table.insert_many(new_posts)
final.inserted_ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment