bwgjoseph / mongoose-vs-ottoman

feature comparison between mongoose and ottoman
0 stars 1 forks source link

Provide ability to select from an operation #102

Open bwgjoseph opened 3 years ago

bwgjoseph commented 3 years ago

Coming from #76 and #85, the ask is to provide support to be able to pass in select option after an operation (e.g updateById, create, etc)

Here are some sample of it look like

updateById('12345', { name: 'joseph' }, { select: 'id, name' });

create({ name: 'joseph', 'gender': 'male' }, { select: ['id, 'name'] });