Skip to content

Commit 36077f3

Browse files
authored
Fix mapping config combine generateModelsWithPublicFields (#1310)
1 parent ac08c75 commit 36077f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/kobylynskyi/graphql/codegen/model/MappingConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public void combine(MappingConfig source) {
221221
generateNoArgsConstructorOnly = getValueOrDefaultToThis(source,
222222
GraphQLCodegenConfiguration::isGenerateNoArgsConstructorOnly);
223223
generateModelsWithPublicFields = getValueOrDefaultToThis(source,
224-
GraphQLCodegenConfiguration::isGenerateNoArgsConstructorOnly);
224+
GraphQLCodegenConfiguration::isGenerateModelsWithPublicFields);
225225
}
226226

227227
private <T> T getValueOrDefaultToThis(MappingConfig source, Function<MappingConfig, T> getValueFunction) {

0 commit comments

Comments
 (0)