1.2.0 • Published 5 months ago

nestjs-base-repository v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Goals:

  • The purpose of this package is support to define a simple CRUD Rest API quickly.

Required:

  • = @nestjs/mongoose@10.0.2

  • = mongoose@8.0.1

Supported methods:

  • create
  • findOne
  • findAll
  • paginatedAggregate
  • updateOne
  • deleteOne
  • deleteMany
  • count

Usage:

export class AppRepository extends BaseRepository<
    AppDocument,
    CreateDto,
    UpdateDto
> {
    constructor(
        @InjectModel(App.name)
        private _appModel: Model<AppDocument>
    ) {
        super(_appModel);
    }
}
1.2.0

5 months ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago