- Removed
auto_map
- auto maps by default. map_to
doesn't execute query anymore, it just sets mapping class and returns the query.- Added new methods that execute query:
one
,one!
andall
.one!
raisesMongoOne::Errors:NotFound
if no document found. - Container friendly.
Collection.new.find()
- AST Support for Types::Any. Use
Types::Any
for_id
in your Dry::Structs if you want to get_id
asBSON::ObjectId
. - Auto Mapped struct now has
_id
asTypes::Any
by default. - Added missing keys toleration in
schema
. Useattribute?
if the field in the db document is optional. - Added support for projections of untyped
Hash
andArray
fields. - Added
skip
for read operations. - Added
each_batch
helper for read operations. See Spec for usage.