monk find fields code example
Example: monk find fields
const users = monk(<connectionString>).get('users');
users.find({
userId: 3425
}, {
projection: {
name: 1
}
}).then((docs) => {
// only the name field will be selected
});
const users = monk(<connectionString>).get('users');
users.find({
userId: 3425
}, {
projection: {
name: 1
}
}).then((docs) => {
// only the name field will be selected
});