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.
1 parent 5bdcf20 commit bfbdddcCopy full SHA for bfbdddc
src/index.ts
@@ -25,9 +25,11 @@ export const plugin: PluginFunction<RawSWRPluginConfig> = (
25
const allAst = concatAST(documents.map((v) => v.document))
26
27
const allFragments: LoadedFragment[] = [
28
- ...(allAst.definitions.filter(
29
- (d) => d.kind === Kind.FRAGMENT_DEFINITION
30
- ) as FragmentDefinitionNode[]).map((fragmentDef) => ({
+ ...(
+ allAst.definitions.filter(
+ (d) => d.kind === Kind.FRAGMENT_DEFINITION
31
+ ) as FragmentDefinitionNode[]
32
+ ).map((fragmentDef) => ({
33
node: fragmentDef,
34
name: fragmentDef.name.value,
35
onType: fragmentDef.typeCondition.name.value,
0 commit comments