Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
});
 
PREVIOUS NEXT
Tagged: #monk #find #fields
ADD COMMENT
Topic
Name
6+8 =