github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/manual_testing/node_reuse/many_withs_base/dashboard.sp (about) 1 dashboard "many_withs_base" { 2 title = "Many Withs Base" 3 with "n1" { 4 query = query.dashboard_with 5 } 6 graph "foo"{ 7 base = graph.g1 8 } 9 # 10 # graph "bar"{ 11 # node "n1" { 12 # sql = <<-EOQ 13 # select 14 # $1 as id, 15 # $1 as title 16 #EOQ 17 # args = [ with.n1.rows[0]] 18 # } 19 # } 20 } 21 22 23 graph "g1"{ 24 with "n1" { 25 query = query.graph_with 26 } 27 node "n1" { 28 sql = <<-EOQ 29 select 30 $1 as id, 31 $1 as title 32 EOQ 33 args = [ with.n1.rows[0]] 34 } 35 args = [ with.n1.rows[0]] 36 } 37 38 39 40 query "graph_with"{ 41 sql = <<-EOQ 42 select 'n1_graph' 43 EOQ 44 } 45 46 query "dashboard_with"{ 47 sql = <<-EOQ 48 select 'n1_dashboard' 49 EOQ 50 }