Skip to content

Commit

Permalink
Merge pull request #3154 from domusofsail/fix-generated-case
Browse files Browse the repository at this point in the history
fix(graphql): fix case of generated method return and parameter types
  • Loading branch information
kamilmysliwiec authored Oct 23, 2024
2 parents d1c009e + 1988373 commit 74c16f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/lib/graphql-ast.explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class GraphQLAstExplorer {
getType(typeName: string, options: DefinitionsGeneratorOptions): string {
const defaults = this.getDefaultTypes(options);
const isDefault = defaults[typeName];
return isDefault ? defaults[typeName] : typeName;
return isDefault ? defaults[typeName] : upperFirst(typeName);
}

getDefaultTypes(options: DefinitionsGeneratorOptions): {
Expand Down

0 comments on commit 74c16f7

Please sign in to comment.