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 5722c2c commit 91fee89Copy full SHA for 91fee89
src/GetWidgets.graphql
@@ -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
@@ -0,0 +1,9 @@
+fragment WidgetWithTags on Widget {
+ name
+ tags {
+ count: usageCount(interval: $usageInterval)
8
9
0 commit comments