- 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.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
flagman/mongo_one
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published