zenstackhq / zenstack

Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
https://zenstack.dev
MIT License
2.07k stars 88 forks source link

TRPC generator doesn't generates count method #618

Closed mildlysupreme closed 1 year ago

mildlysupreme commented 1 year ago

Hi! Thank you for awesome software! For some reason TRPC generator doesn't generates count method

image

ymc9 commented 1 year ago

Hey @mildlysupreme , thanks for reporting this. This is caused by incomplete schema metadata provided by Prisma 😂 - the "count" operation and related structure is missing there. We'll need to patch it somehow.

imsanchez commented 1 year ago

Thank you for reporting @mildlysupreme!

Issue tracked via https://github.com/omar-dulaimi/prisma-trpc-generator/issues/81

ymc9 commented 1 year ago

Fixed in 1.0.0-beta.21