1.0.0-mongoose8.2 • Published 4 days ago

@pebula/goosetyped v1.0.0-mongoose8.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

@pebula/goosetyped

Documentation npm (scoped) GitHub

GooseTyped allows you to focus on building your models more clearly. Simplifying most of the domain specific concepts of mongoose resulting in a modern ORM code which in turn, allows taking advantage of modern JS features and design patterns.

One Model One Schema

With GooseTyped you no longer need to define a schema and then create a model class from it, everything is streamlined into one single class.

import { GtDocument, GtModel } from '@pebula/goosetyped';

@GtDocument()
export class Customer extends GtModel() {
  @GtColumn()
  name: string;

  @GtColumn()
  age: number;
}

This is very powerful when working in TypeScript as no sorcery is required to properly export your model class types.

Not an ORM

GooseTyped is not an ORM by itself and does not provide additional functionality on-top of mongoose.
It is a wrapper around mongoose which provide modern tools to define and and configure the DB schema which is more adapted to TypeScript and modern ORM libraries.

0.2.0

3 years ago

0.1.0

4 years ago

0.0.8

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago