graphql-java-codegen
graphql-java-codegen copied to clipboard
Change default value of generateParameterizedFieldsResolvers to false
Changes should be done in:
- [ ] Core library + unit tests
- [ ] Gradle plugin
- [ ] Maven plugin
- [ ] SBT plugin
- [ ] Migration guide: 5.x.x -> 6.0.0
Related to #676 #476 #221 #1383
Why should the default be false? That would make it more tedious to create parametrized fields, because you’d need to explicitly list them all out manually in the generateFieldResolvers config. I think it should stay true by default but only apply to non-@external parametrized fields.
Also, out of curiosity - if generateParameterizedFieldsResolvers is false but you do have some parameterized fields in the schema, how are they supposed to be handled? Do you still get a resolver method somewhere, or are the inputs simply ignored?