Releases: GetmeUK/MongoFrames
Releases · GetmeUK/MongoFrames
RandomReference
Changes:
- Added
RandomReference
maker to allow the_id
or a document from a specified collection to be selected at random, optionally with a constraint. - Removed the issue where
insert_many
would only accept documents that did not have_id
values.
Fix for incorrect default domain for `ImageURL` maker.
1.2.1 Fix for incorrect default domain for `ImageURL` maker.
New interface for blueprints
Changes:
- New interface for blueprints,
Blueprint
classes are now defined as static classes and instructions as attributes not a separate dictionary. - Added
Int
maker class. - Added
Float
maker class.
Hot fix for `Lorem` maker and new `Faker` locale changes.
1.1.2 Fix for `Lorem` maker and new `Faker` locale changes.
Added support for setting the locale against the `Faker` maker class.
1.1.1 Added support for setting the locale against the Faker maker.
Introduction of factory
This release of MongoFrames sees the introduction of the factory sub-module which provides a set of classes and functions to simplify the process of generating fake data.
The documentation for the release has not yet been completed and so I'll update the release with a link once this is in place.
Fixes for by_id and references that aren't ObjectId types.
1.0.3 Fixes #6. `by_id` no longer attempts to convert any value passed to a…
`insert` and `upsert` fixed to support for preset `_id` value
Added support for reference and SubFrame mappings in $sub projections
This makes the following project possible:
web_order = WebOrder.one(Q._id == ObjectID(...), projection={
'items': {
'$sub': Item,
'product': {
'$ref': Product,
'name': True
}
}
})
In the example above we select a single web order (Frame) and map all items for the order to an item (SubFrame). Each item has a reference to a product (Frame) which we select limiting the projection to just the product's name.
Initial release
1.0.0 Merge branch 'master' of github.com:GetmeUK/MongoFrames