import {
connect,
disconnect,
getDatabase,
getCollection,
generateId
} from "@userful/mongo";
(async function() {
await connect();
const Users = await getCollection("users");
const user = await Users.findOne({});
await Users.insert({
_id: generateId()
/* Other fields */
});
await disconnect();
})();
-
Notifications
You must be signed in to change notification settings - Fork 0
usefulio/mongo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published