3 ms·
Curious about the date response part. JSON.stringify(payload) turns dates into strings. Did that not work as a response for your API for some reason?
by matthewmueller 6y ago
Curious about the date response part.
JSON.stringify(payload) turns dates into strings. Did that not work as a response for your API for some reason?
- qudat 6y agoIt works fine, but the typescript types that prisma generates says that type is a date, not a string. So I can't directly use that as the API response type, I have to modify the prisma type to get it to work correctly on the FE. Does that make sense?