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
Set idFieldkind to string or number , do not set any resolveInput.create hook to assign id filed value
try to create an item
it should throw error that idfield is not provided
Try to create item with graphql playground
Notice no id field input for creating new item
Expect to be able to create item with id field in input.
in my case I am generating a log tabl;e entry on order change which can always provide custom id while creating an item instead of setting a value as part of resolveInput.
Alternatively you can use context.prisma to create such item.
The text was updated successfully, but these errors were encountered:
idField
kind
tostring
ornumber
, do not set anyresolveInput.create
hook to assign id filed valueExpect to be able to create item with
id
field in input.in my case I am generating a log tabl;e entry on order change which can always provide custom id while creating an item instead of setting a value as part of
resolveInput
.Alternatively you can use
context.prisma
to create such item.The text was updated successfully, but these errors were encountered: