不要怂,就是干,撸起袖子干!

Commit ef40634f by Igor Szymanski Committed by Sushant

test(types): enable string association (#10487)

1 parent b42bbc7a
Showing with 16 additions and 2 deletions
import { Model, Sequelize } from 'sequelize';
import { Model, Sequelize, HasMany } from 'sequelize';
class MyModel extends Model {}
class MyModel extends Model {
public static associations: {
relation: HasMany
};
}
class AssociatedModel extends Model {}
......@@ -22,3 +26,13 @@ MyModel.findAll({
MyModel.findAll({
include: [{ all: true }],
});
MyModel.findAll({
include: [{
limit: 1,
association: 'relation',
order: [['id', 'DESC']],
separate: true,
where: { state: Sequelize.col('project.state') },
}]
});
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!