apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

Consider propagating some of the default configurations done on the schema module down to sub-modules whenever possible.

Open StylianosGakis opened this issue 2 years ago • 2 comments

Use case

In my schema module, I had generateOptionalOperationVariables.set(false) and I was initially quite confused why my code generated did not follow this configuration setting. codegenModels gets propagated down to child modules properly so I had made the assumption this would apply here too, hence my initial confusion

Describe the solution you'd like

Consider, if possible, propagating down more such settings made to the schema module down to the sub modules as the default value, and of course let them opt-out for individual settings if it should be possible.

StylianosGakis avatar Nov 14 '23 14:11 StylianosGakis

The ideal solution here would be to have a dedicated DSL to differentiate schema and feature modules. This would imply a lot of breaking changes probably so it's not in the immediate future.

BoD avatar Aug 13 '24 11:08 BoD

Even since back then, I can't say I've encountered this as a problem again. Probably since these things are not things we change too often. Just thought I'd mention to note that this is not the most urgent thing in the world for sure.

StylianosGakis avatar Aug 26 '24 11:08 StylianosGakis