Skip to content

Commit 91fee89

Browse files
committed
Example GraphQL lint failure for variables used in a Fragment
1 parent 5722c2c commit 91fee89

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/GetWidgets.graphql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#import WidgetWithTags from './WidgetWithTags.graphql'
2+
query AllWidgets($usageInterval: Interval!) {
3+
widgets {
4+
id
5+
...WidgetWithTags
6+
}
7+
}

src/WidgetWithTags.graphql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fragment WidgetWithTags on Widget {
2+
id
3+
name
4+
tags {
5+
id
6+
name
7+
count: usageCount(interval: $usageInterval)
8+
}
9+
}

0 commit comments

Comments
 (0)