Skip to content

Commit 137b621

Browse files
authored
fix: Don't change fragment capitalisation (#169)
1 parent 6ac1dc0 commit 137b621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const plugin: PluginFunction<NamedOperationsObjectPluginConfig, string> =
4343
visit(allAst, {
4444
FragmentDefinition: node => {
4545
if (filterByDirective(node.directives, config.fragmentRegistryDirective)) {
46-
fragments.push(capitalCase(node.name.value, { delimiter: '' }))
46+
fragments.push(node.name.value)
4747
}
4848
},
4949
});
@@ -73,4 +73,4 @@ ${fragments.map(fragment => ` 'stackables.webhook.${fragment}': ${fragment}Hand
7373
}`)
7474

7575
return source.join('\n')
76-
};
76+
};

0 commit comments

Comments
 (0)