sequelize-typescript
sequelize-typescript copied to clipboard
Decorators and some other features for sequelize
This is the model definition of my User model : ``` import { Table, Column, Model, DataType, PrimaryKey, AutoIncrement, ForeignKey, BelongsTo, HasMany, } from 'sequelize-typescript'; import { Role } from...
# Issue Justing a light request, could you add a working example on how to use migrations with typescript using sequelize-cli? ## Versions Node: 16.20.2, CLI: 6.6.2, ORM: 6.37.3 ##...
# Issue I have tried using eager loading in combination with the $get method on a sequelize object: ```js await user?.$get("following", { order: [["name", "ASC"]], limit: USERS_PER_PAGE, offset: (page -...
```ts @Scopes(() => ({ exampleScope: (value) => [{ attributes: ["name"], }], // error types because })) // types export declare type ScopesOptionsGetter = () => { [sopeName: string]: ScopesOptions; };...
I have a model. And Added Hooks Before Save and After Create They Are both not instantiating uuid of my AccessModel. import { Column, DataType, BelongsTo, Table, BeforeCreate, BeforeValidate, AfterCreate,...
When I want to select specific attribute from my model it is returning not related attributes. My function for selecting is this async findOneLogIn(username: string): Promise { return this.model.findOne({ where:...
Hello 👋, first of all, please excuse me if my issue has already been reported, but I don't know what to search for to find it, hence my issue. I...
Models in documentation will not function correctly due to Public Class Fields caveat in sequelize v6 https://sequelize.org/docs/v6/core-concepts/model-basics/#caveat-with-public-class-fields Caveat with Public Class Fields Adding a [Public Class Field](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields) with the same...
When using a virtual column that modifies a primary key, if the primary key is not supplied on an update, the pk is `null` and the virtual column will try...
Missing Release of Resource after Effective Lifetime Vulnerable module inflight Introduced through [email protected] > [email protected] > [email protected] Fixed in [email protected] Fix: Update the glob npm package