Skip to content

v0.6.4

Compare
Choose a tag to compare
@sebelga sebelga released this 18 Oct 19:32
· 386 commits to master since this release

Fix

Bug when updating a model data (PR #17 ). Thanks @soraxtend

Added

The possibility to pass a function as a value for a filter in list shortcut query.
This allow for dynamic values to be calculated (for example the current date) as the declaration only occurs once.

// In a Schema definition

var querySettings = {
    filters  : ['publishedOn', '<', function(){ return new Date(); }]
};
blogPostSchema.queries('list', querySettings);