keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Missing CreateInput for custom IdField

Open gautamsi opened this issue 1 year ago • 0 comments

  1. Set idField kind to string or number , do not set any resolveInput.create hook to assign id filed value
  2. try to create an item
  3. it should throw error that idfield is not provided
  4. Try to create item with graphql playground
  5. 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.

gautamsi avatar Aug 08 '24 02:08 gautamsi