[go: nahoru, domu]

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

Ability to add decorators to _count field #429

Open
subtle-supernova opened this issue Dec 19, 2023 · 0 comments
Open

Ability to add decorators to _count field #429

subtle-supernova opened this issue Dec 19, 2023 · 0 comments
Labels
community Something initiated by the community enhancement New feature or request

Comments

@subtle-supernova
Copy link

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.

@MichalLytek MichalLytek added enhancement New feature or request community Something initiated by the community labels Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Something initiated by the community enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants