Installation

npm i @shiftcoders/dynamo-easy --save
npm i reflect-metadata@^0.1.12 --save

Also install all the required peer dependencies listed in package.jsonof @shiftcoders/dynamo-easy

The reflect-metadata library should be imported only once in your entire application, because the Reflect object is meant to be a global singleton. Import it once in some entry file of your app.

entry.ts (or some other entry file)
import "reflect-metadata"

If you are using the reflect-metadata api in your project, make sure to include the typings. The type definitions are included in the npm package.

tsconfig.json
{
    "types": ["reflect-metadata"]
}

We make heavy usage of Typescript decorators, so you also need to enable the typescript features

tsconfig.ts
{
    "experimentalDecorators": true
    "emitDecoratorMetadata": true
}

Last updated