Troubleshooting Effect/Schema Integration with Effect/SQL for User Creation
Hello, I am trying to use effect/schema with effect/sql and I have a small problem:
I have the following schema:
And the following effect:
When a new user is inserted in the database, the date fields (createdAt, updatedAt) are returned as
My guess is that I should use transform to manually write the decode/encode functions, maybe I am wrong, can someone help please ? Thanks
I have the following schema:
And the following effect:
When a new user is inserted in the database, the date fields (createdAt, updatedAt) are returned as
Date , and if I my understanding is good I can't make a DateTimeUtc from a Date, I have the following error: Expected string, actual Thu Sep 12 2024 23:33:03 GMT+0000 (Coordinated Universal Time)My guess is that I should use transform to manually write the decode/encode functions, maybe I am wrong, can someone help please ? Thanks
