async function getNotes()

in mongodb/nodejs/linux/cosmoslib.js [22:29]


async function getNotes() {
  const database = client.db(databaseId);
  const collection = database.collection(databaseId);
  const resources = await collection.find({}).toArray();

  let resp = _.map(resources, _.partialRight(_.pick, ["_id", "content"]));
  return resp;
}