Python Mongodb
  • Mongodb কি ?
  • এনভার্নমেন্ট তৈরী :
  • mongodbCompass কি :
    • mongodb compass কানেক্ট এরর :
  • pymongo :
  • mongoengine
    • 01.Connecting With Database
    • 02 Create Document.ipynb
    • 03 Fields
    • 04 FieldValidation
    • 05.Document Relationship One To One
    • 06 Document Relationship One To Many
    • 07 Document Relationship Many To Many
  • MongoDB Atlas
    • Setup
Powered by GitBook
On this page
  1. mongoengine

02 Create Document.ipynb

Previous01.Connecting With DatabaseNext03 Fields

Last updated 1 year ago

from mongoengine import *
connect(db='Employee')

Create Document Class

class Contacts(Document):
    first_name = StringField()
    last_name= StringField()
    email = EmailField()

Create Object

contact1= Contacts(first_name='Olee',last_name='Ahmmed',email='olee.techs@gmailll.com')
contact1.save()
disconnect()
3KB
02 Create Document.ipynb