npm

Need private packages and team management tools?Check out npm Orgs. »

oly-mongo

1.1.0 • Public • Published

oly mongo

import { Kernel } from "oly";
import { Document, Repository } from "oly-mongo";
 
class UserDocument extends Document {
  @field email: string;
  @field password: string;
}
 
class UserRepository extends Repository.of(UserDocument) {
}
 
const kernel = Kernel.create();
const users = kernel.get(Repository);
await kernel.start();
await users.save({email: "...", password: "..."});

install

npm i oly-mongo

Downloadsweekly downloads

75

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability