Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created November 1, 2019 12:36
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 NMZivkovic/f5b9129a2f1d649dc481635831fa7827 to your computer and use it in GitHub Desktop.
Save NMZivkovic/f5b9129a2f1d649dc481635831fa7827 to your computer and use it in GitHub Desktop.
user_1 = {
'name':"Vanja",
'age':29,
'blog':"eventroom.org"
}
user_2 = {
'name':"Marko",
'age':36,
'blog':"rubikscode.net"
}
result = user_repo.insert_many([user_1, user_2])
print(result.acknowledged)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment