Prisma new field adding will thorw the unkown error
i have this prisma schema
and my situation is
i want userPlans to be unique to all users and i want to return default values if userPlans dont exists for old users and i dont want to excute any js
14 Replies
Any help
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Naming conventions isnt issue here
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Its getting added automatically
When i press save
Even if i remove it its getting added automatically
My only problem is my old users dont have this object
And its returning errorr for them
I want to return default values
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Can you explain this more
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
I do
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Cant it be done via prisma?
Even if i do set field it will only set single field
What about relation?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
I can generate a sample data using schema put it in chatgpt it will give a random data
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View