Michiel ter Reehorst

Results 42 comments of Michiel ter Reehorst

@ymc9, yes, it did for me. Probably something changed on the prisma side.

For a current scenario I've also switched to using `updateMany` instead of `update` to prevent the extra select. A wast of resourcing if you're not interested in the result IMO....

@Cliffzz, if this package is no longer maintained and updated, maybe it's time to publicly archive it? So people know what to expect. I'm the original author, but no longer...

@timscullin, did you ever find a way to do this? I'm looking for a way to configure cron jobs per app, but can't find a solution. What @Juninhoww2 is suggesting...

@timscullin, thanks for the quick reply! The solution was in the thread I added to my answer. So it's working for us now.

@mario-jerkovic, what you're describing is the previous behaviour of the enums. Now that the mapped value is exposed in the TypeScript enum it will actually be visible in the application....

@mario-jerkovic, the more I think of it, the more I think you're right. Although the prisma enum is missing a key/value syntax, mapping it to a DB value is a...

> I want the ORM to take care that this resolves to the key `US` internally `MyEnum.US` has the value `"United States"` in your example. So if you pass `MyEnum.US`...

> This is what I think would not be beneficial. We almost always want the keys (short) in the DB and not the values. @Poolshark, I think you're right about...

@Poolshark, is there a reason you prefer a new directive over new syntax? I think the syntax update would be recognisable for TypeScript developers and shows that the key/value enums...