0.2.1 • Published 5 years ago
@oculushealth/mongo
Licence
ISC
Version
0.2.1
Deps
1
Size
10 kB
Vulns
0
Weekly
0
@oculushealth/mongo
MongoDB package that is used in the Oculushealth projects.
Example usage
import {
connect,
disconnect,
getDatabase,
getCollection,
generateId
} from "@oculushealth/mongo";
(async function() {
await connect();
const Users = await getCollection("users");
const user = await Users.findOne({});
await Users.insert({
_id: generateId()
/* Other fields */
});
await disconnect();
})();