oly-mongo
TypeScript icon, indicating that this package has built-in type declarations

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: "..."});

Dependents (0)

Package Sidebar

Install

npm i oly-mongo

Weekly Downloads

73

Version

1.1.0

License

MIT

Unpacked Size

45.4 kB

Total Files

48

Last publish

Collaborators

  • nolyme