Replies: 1 comment 4 replies
-
I'm not quite know with deepkit, for the moment my prefference would be to keep using For the short term, does this impact the usage of the lib or can we just write a util that we can use in the e2e tests or even in the lib itself? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @TriPSs,
As I was working on the Typegoose e2e tests, I noticed there were a ton of unit tests commented out. Digging deeper, the first problem I ran into was that the ObjectIds were getting reset by class-transformer and low and behold, it's a known issue and they don't want to fix it, They say the entities
_id
field needs a special@Transform
, which is sort of silly to ask userland to add, as the_id
field is standard in practically all Mongoose/ Mongodb entities.So, my question is, I've used a different transformer called @deepkit/type. If I can get it working to do the transformations would you be ok with that?
https://deepkit.io/library/type
Scott
Beta Was this translation helpful? Give feedback.
All reactions