How to use Sequelize.literal in a virtual type #13050
Unanswered
klair
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have seen Sequelize.literal used in a Sequelize.VIRTUAL type, but I'm unable to implement due to a type error.
I haven't seen this in the documentation just in other peoples comments, is this possible in the below sequelize version or is there another way of implementing something similar?
sequelize version: 6.5.0
The error is: TS2322: Type 'Literal' is not assignable to type 'string'.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions