We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a38d6c commit 5a71502Copy full SHA for 5a71502
src/format/Operation.ts
@@ -51,7 +51,7 @@ export function formatOperation(operation: OperationIR): string {
51
)},${_snake2Pascal(`${operationDataPrefix}_variables`)}>,
52
MutationResult<${_snake2Pascal(`${operationDataPrefix}_data`)}>
53
]{
54
- //@ts-ignore
+ // @ts-ignore
55
return use${_snake2Pascal(
56
operationType
57
)}(${operationName}GqlDocument, options);
src/format/Type.ts
@@ -13,8 +13,8 @@ export function formatType(type: TypeIR): string {
13
let t = ''
14
if (type.scalar) {
15
t = formatScalarType(type)
16
- if (t.includes('Saiphe_')) {
17
- console.log(t)
+ if (t.includes('_')) {
+ t = _snake2Pascal(t)
18
}
19
20
if (type.fields) {
0 commit comments