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
tsc never emits diagnostics for the above code , but the runtime error occurs because the object resolved by buildCreateInput includes { author: { ... } } property.
Solution
Model Factory 's .create() methods screens the input data before passing to Prisma client's raw .crate function.
The screening procedure should the following:
Something like this:
tsc never emits diagnostics for the above code , but the runtime error occurs because the object resolved by
buildCreateInput
includes{ author: { ... } }
property.Solution
Model Factory 's
.create()
methods screens the input data before passing to Prisma client's raw.crate
function.The screening procedure should the following:
The text was updated successfully, but these errors were encountered: