Q:

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
});
1

New to Communities?

Join the community