You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
Alternatives we've considered:
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 usThe text was updated successfully, but these errors were encountered: