Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing CreateInput for custom IdField #9270

Open
gautamsi opened this issue Aug 8, 2024 · 0 comments
Open

Missing CreateInput for custom IdField #9270

gautamsi opened this issue Aug 8, 2024 · 0 comments

Comments

@gautamsi
Copy link
Member

gautamsi commented Aug 8, 2024

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant