You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constaas=awaitA.findAll({where: Sequelize.literal(`id IN ( SELECT "aaId" FROM "Pp" WHERE "ppId" = 10 ) `,),});
The typescript error:
Argument of type'{ where: Literal; }' is not assignable to parameter of type'FindOptions'.
Types of property 'where' are incompatible.
Type 'Literal' is not assignable to type'WhereAttributeHash | AndOperator | OrOperator | Where | undefined'.
Type 'Literal' is not assignable to type'WhereAttributeHash'.
Index signature is missing intype'Literal'.ts(2345)
Environment
sequelize-typescript: 1.0.0-beta.3
Dialect:
mysql
[ X ] postgres
sqlite
mssql
any
Dialect library version: pg version 6.4.2
Database version: 9.6.12
Sequelize version: 5.8.10
Node Version: 8.11.4
OS: macOS 10.14.3
TypeScript version: 3.4.3 (or 3.3.3 same issue)
Tested with latest release:
No
[ X ] Yes, specify that version: 5.8.10
The text was updated successfully, but these errors were encountered:
This does not work:
The typescript error:
Environment
sequelize-typescript: 1.0.0-beta.3
Dialect:
Dialect library version: pg version 6.4.2
Database version: 9.6.12
Sequelize version: 5.8.10
Node Version: 8.11.4
OS: macOS 10.14.3
TypeScript version: 3.4.3 (or 3.3.3 same issue)
Tested with latest release:
The text was updated successfully, but these errors were encountered: