Answers for "monk find"

1

monk find

const users = monk(<connectionString>).get('users');

users.find({
  age: 18
}).then((docs) => {
  // All users with an age of 18 will be selected
});

users.find({}, {
  fields: {
    name: 1
  }
}).then((docs) => {
  // only the name field will be selected
});
Posted by: Guest on August-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language