SoftwareBrothers / adminjs-prisma

MIT License
47 stars 27 forks source link

fix: removed id from data in update method #23

Closed jdaar closed 1 year ago

jdaar commented 2 years ago

Removed id from data in update method.

This is because when id is present in data, it results in error.

Error msg: Unknown arg `id` in data.id for type GuideUncheckedUpdateInput.

With this pull request, the problem is solved and the app works correctly.

Most changes are from format issues, solved by prettier

dziraf commented 2 years ago

I'm not sure if removing id from payload is a good idea, what if someone doesn't use an autogenerated primary key and instead something like "email"?