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

Feature request: Support schema annotation to enable simpleResolvers for a single object type. #452

Open
dickfickling opened this issue Jun 3, 2024 · 0 comments
Labels
community Something initiated by the community enhancement New feature or request

Comments

@dickfickling
Copy link

We are running into performance issues with one of our models and would like to set simpleResolvers: true for just that model. I don't want to enable it globally because we use middleware / authorization on other models.

I think something like the following would work?

/// @TypeGraphQL.simpleResolvers(true)
model User {
  ...
}

Alternatives we've considered:

  • Applying a patch on the generated model file won't work for us, because our models are generated into node_modules and therefore not included in source control, so there's no easy way for us to maintain the patch. Moving generated files into source control opens up a can of worms for us
  • That's all we've considered
@MichalLytek MichalLytek added enhancement New feature or request community Something initiated by the community labels Jun 3, 2024
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