Skip to content

Commit 90837ea

Browse files
committed
add filters in the query
1 parent d2305ef commit 90837ea

File tree

1 file changed

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

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export const getResourceChartDetails = graphql(`
3737
id
3838
}
3939
chart
40+
filters {
41+
column
42+
operator
43+
value
44+
}
4045
options {
4146
aggregateType
4247
xAxisColumn {
@@ -80,6 +85,11 @@ export const createChart = graphql(`
8085
name
8186
}
8287
name
88+
filters {
89+
column
90+
operator
91+
value
92+
}
8393
options {
8494
aggregateType
8595
xAxisColumn {
@@ -112,8 +122,6 @@ export const createChart = graphql(`
112122
}
113123
`);
114124

115-
116-
117125
export const CreateResourceChart: any = graphql(`
118126
mutation GenerateResourceChart($resource: UUID!) {
119127
addResourceChart(resource: $resource) {

0 commit comments

Comments
 (0)