Skip to content

Commit

Permalink
Merge branch 'current' into finance-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver authored Nov 13, 2023
2 parents c1be1ec + 309482b commit bdca17d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions website/docs/docs/dbt-cloud-apis/sl-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name: "order_total"}]
groupBy: [{name: "metric_time", grain: "month"}]
groupBy: [{name: "metric_time", grain: MONTH}]
) {
queryId
}
Expand All @@ -298,7 +298,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name: "food_order_amount"}, {name: "order_gross_profit"}]
groupBy: [{name: "metric_time, grain: "month"}, {name: "customer__customer_type"}]
groupBy: [{name: "metric_time, grain: MONTH}, {name: "customer__customer_type"}]
) {
queryId
}
Expand All @@ -320,7 +320,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics:[{name: "order_total"}]
groupBy:[{name: "customer__customer_type"}, {name: "metric_time", grain: "month"}]
groupBy:[{name: "customer__customer_type"}, {name: "metric_time", grain: MONTH}]
where:[{sql: "{{ Dimension('customer__customer_type') }} = 'new'"}, {sql:"{{ Dimension('metric_time').grain('month') }} > '2022-10-01'"}]
) {
queryId
Expand All @@ -335,8 +335,8 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name: "order_total"}]
groupBy: [{name: "metric_time", grain: "month"}]
orderBy: [{metric: {name: "order_total"}}, {groupBy: {name: "metric_time", grain: "month"}, descending:true}]
groupBy: [{name: "metric_time", grain: MONTH}]
orderBy: [{metric: {name: "order_total"}}, {groupBy: {name: "metric_time", grain: MONTH}, descending:true}]
) {
queryId
}
Expand All @@ -351,7 +351,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name:"food_order_amount"}, {name: "order_gross_profit"}]
groupBy: [{name:"metric_time, grain: "month"}, {name: "customer__customer_type"}]
groupBy: [{name:"metric_time, grain: MONTH}, {name: "customer__customer_type"}]
limit: 10
) {
queryId
Expand All @@ -368,7 +368,7 @@ mutation {
compileSql(
environmentId: BigInt!
metrics: [{name:"food_order_amount"} {name:"order_gross_profit"}]
groupBy: [{name:"metric_time, grain:"month"}, {name:"customer__customer_type"}]
groupBy: [{name:"metric_time, grain: MONTH}, {name:"customer__customer_type"}]
) {
sql
}
Expand Down

0 comments on commit bdca17d

Please sign in to comment.