
Mongodbx::class perl module is a flexible object relational mapper (orm) for mongodb databases. given a schema-like collection of document classes, mongodbx::class expands mongodb objects (hash-refs in perl) from the database into objects of those document classes, and collapses such objects back to the database.
mongodbx::class takes advantage of the fact that perl's mongodb driver is moose-based to extend and tweak the driver's behavior, instead of wrapping it. this means mongodbx::class does not define its own syntax, so you simply use it exactly as you would the mongodb driver directly. that said, mongodbx::class adds some sugar that enhances and simplifies the syntax unobtrusively (either use it or don't). thus, it is relatively easy to convert your current mongodb applications to mongodbx::class. a collection in mongodbx::class isa('mongodb::collection'), a database in mongodbx::class isa('mongodb::database'), etc.