typegraphql-prisma icon indicating copy to clipboard operation
typegraphql-prisma copied to clipboard

Ability to add decorators to _count field

Open subtle-supernova opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I cannot add a decorator (ex: Authorized) to the _count meta field. So a _count field will always appear null when auth takes place

Describe the solution you'd like If there were some kind of _count key in modelsEnhanceMap or ModelCount appeared in RelationResolverActionsConfig<"Model">

Describe alternatives you've considered It can be handled on a case by case basis for individual models, but it's tedious and error prone. Maybe I could proxy Authorized in a way I haven't thought of?

Additional context This problem appears on models in relations.

subtle-supernova avatar Dec 19 '23 23:12 subtle-supernova