A @golang object document mapper (ODM) for #MongoDB

The mongodm package is an object document mapper (ODM) for mongodb written in Go which uses the official mgo adapter.



  • 1:1, 1:n struct relation mapping and embedding
  • call Save(),Update()Delete() and Populate() directly on document instances
  • call Select()Sort()Limit()Skip() and Populate() directly on querys
  • validation (default and custom with regular expressions) followed by translated error list (customizable)
  • population instruction possible before and after querys
  • Find()FindOne() and FindID()
  • default handling for IDCreatedAtUpdatedAt and Deleted attribute
  • extends *mgo.Collection
  • default localisation (fallback if none specified)
  • database authentication (user and password)
  • multiple database hosts on connection