-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Description
I want to be able to filter a association, as in the example below only bring the emails assets of a particular user.
var User = db.define('user', ...);
var Email = db.define('email', ...);
Email.hasOne('user', User, {required: true, reverse: 'emails'});
user.getEmails().find({active: true}).run(...);
user.getEmails().where("active = ?", [true]).all(...);Reactions are currently unavailable