Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

Releases: goto-bus-stop/mongoose-model-decorators

v0.4.0

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 23 Jul 14:56
50ea3ad

Added a hook to configure the schema with a function (c18833a), to do things that don't have a syntax in this module, such as compound indices or custom queries.

@Model
class User {
  static schema = { /* ... */ }
  static configureSchema (schema) {
    schema.index({ name: 1, source: 1, medium: 1 }, { unique: true })
  }
}

v0.3.2

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 01 Feb 09:46
0fe5e58

Internal and dependency updates.

v0.3.1

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 01 Feb 09:45

Bugfixes:

  • fix next() being called on post hooks (#6 by @dotlouis)

v0.3.0

Choose a tag to compare

@goto-bus-stop goto-bus-stop released this 16 Feb 15:11

Features

  • Attach a Model to a non-default connection using the @Model({ connection: ... }) option (#4)