-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Right now I have a CurrentUserModel and a UserModel. the CurrentUserModel is just a UserModel minus properties I don't want to show in responses like group memberships such as user settings like email_notifications. It would be neat if you could do something like:
// UserModel fetches
UserModel.first(id, {
includes: ['foo', 'bar'],
properties: {
hide: ['email_notifications']
}
});
// GroupModel fetches with UserModel's being eagerly loaded
GroupModel.first(id, {
includes: ['users'],
properties: {
users: {
hide: ['email_notifications']
}
}
});Metadata
Metadata
Assignees
Labels
No labels