Replies: 1 comment 6 replies
-
Please provide reproduction only for this problem, your reprository containts too many code. Also don't use any other framework, especially unsupported versions of nest.
This is exactly where you should say what you are doing and provide the data too. Guess what, we have this covered in tests and it is working just fine, e.g. here: https://github.com/mikro-orm/mikro-orm/blob/master/tests/issues/GH482.test.ts#L35 Ideally reproduction should be a single file test case, like this one, I can't browse your huge repository with hundreds of files and many unneeded build steps or tool configs that are totally unrelated. Reproduction != example app. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Can make enum[] work in postgress
Stack trace
To Reproduce
Steps to reproduce the behavior:
Expected behavior
userEntity.roles should be an array of strings
Additional context
I tried to print what is inside EnumArrayType::convertToDatabaseValue
and it appears to be string '{USER}' rather than an array of strings ['USER']
you can find an example here
https://github.com/TrejGun/nestjs-database
follow instructions in the readme or contact me in telegram by my nickname
Versions
Beta Was this translation helpful? Give feedback.
All reactions