Created
February 8, 2020 07:29
-
-
Save prakashthegyan/6e5d4125d9479cdd98d5c36a3c6c27ce 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
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