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

Generating optional _count fields in output entity types #201

Open
jagged3dge opened this issue Sep 26, 2022 · 0 comments
Open

Generating optional _count fields in output entity types #201

jagged3dge opened this issue Sep 26, 2022 · 0 comments

Comments

@jagged3dge
Copy link

Has anyone managed to add generating a typed _count optional field for entities generated by this tool?

I've been trawling the forks of this repo, and haven't seen anything to support this so far.

It would be really nice to have this feature. I want to attempt this on my fork, but I need some pointers.
The Prisma Client generates typing for the _count field as a part of [model]GetPayload. I'm not sure how to go about incorporating this into the final entity type generation.

Any pointers in the right direction are absolutely welcome. Thanks in advance!

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

No branches or pull requests

1 participant