You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following create call has a TS error because data is missing contentType. Looking at the above types it's clear why, if I specify createdById, showId or orgId, then the type can only be ImageUncheckedCreateInput.
Just to clarify, if I run this code and ignore the TS error, it works fine. So this is just an incorrect type.
Also minor note, but I noticed as seen above that the delegate field contentType is simply of type string. It would be nice, if possible of course, if that type could actually be more specific. In my case it would be 'Image' | 'Sound'
Environment (please complete the following information):
ZenStack version: 2.6.1
Prisma version: 5.20.0
Database type: Postgresql
The text was updated successfully, but these errors were encountered:
Description and expected behavior
Schema
the image.create method's data param, only accepts these types:
The following create call has a TS error because data is missing contentType. Looking at the above types it's clear why, if I specify
createdById
,showId
ororgId
, then the type can only beImageUncheckedCreateInput
.Just to clarify, if I run this code and ignore the TS error, it works fine. So this is just an incorrect type.
Also minor note, but I noticed as seen above that the delegate field
contentType
is simply of type string. It would be nice, if possible of course, if that type could actually be more specific. In my case it would be'Image' | 'Sound'
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: