Skip to content

Commit be8256b

Browse files
committed
update the query
1 parent f3f2a98 commit be8256b

File tree

1 file changed

+10
-6
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/queries

1 file changed

+10
-6
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/queries/index.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ export const getResourceChartDetails = graphql(`
3636
resource {
3737
id
3838
}
39-
chart
40-
filters {
39+
chart {
40+
options
41+
}
42+
chartFilters {
4143
column {
4244
id
4345
fieldName
4446
}
4547
operator
4648
value
4749
}
48-
options {
50+
chartOptions {
4951
aggregateType
5052
xAxisColumn {
5153
id
@@ -88,15 +90,15 @@ export const createChart = graphql(`
8890
name
8991
}
9092
name
91-
filters {
93+
chartFilters {
9294
column {
9395
id
9496
fieldName
9597
}
9698
operator
9799
value
98100
}
99-
options {
101+
chartOptions {
100102
aggregateType
101103
xAxisColumn {
102104
id
@@ -122,7 +124,9 @@ export const createChart = graphql(`
122124
fieldName
123125
}
124126
}
125-
chart
127+
chart {
128+
options
129+
}
126130
}
127131
}
128132
}

0 commit comments

Comments
 (0)