We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eea8792 + d29fd9e commit 3d3747bCopy full SHA for 3d3747b
src/index.ts
@@ -25,11 +25,9 @@ export const plugin: PluginFunction<RawSWRPluginConfig> = (
25
const allAst = concatAST(documents.map((v) => v.document))
26
27
const allFragments: LoadedFragment[] = [
28
- ...(
29
- allAst.definitions.filter(
30
- (d) => d.kind === Kind.FRAGMENT_DEFINITION
31
- ) as FragmentDefinitionNode[]
32
- ).map((fragmentDef) => ({
+ ...(allAst.definitions.filter(
+ (d) => d.kind === Kind.FRAGMENT_DEFINITION
+ ) as FragmentDefinitionNode[]).map((fragmentDef) => ({
33
node: fragmentDef,
34
name: fragmentDef.name.value,
35
onType: fragmentDef.typeCondition.name.value,
0 commit comments