paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
683 stars 54 forks source link

PrismaTable edit row doesn't work when using uuid() instead of Int #158

Closed chrisbull closed 3 years ago

chrisbull commented 3 years ago

When using UUIDs for the id of the model, everything works fine. However, when you click on "edit" it using router.query to get the id, but it strips the router.query variable and only uses the first 5 digits of the UUID.

For example: http://localhost:3000/admin/models/User?update=369062d2-119d-4be8-a471-b2bd81be74f9 Will error because it tries to do a look up on 369062d2 instead of the full string.

AhmedElywa commented 3 years ago

Thanks for reporting. Please try the latest version 2.6.3