File tree 1 file changed +5
-6
lines changed
website/cue/reference/components/transforms
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ components: transforms: route: {
100
100
routing_to_multiple_components : {
101
101
title : " Routing to multiple components "
102
102
body : """
103
- The following is an example of how you can creates two routes that feed three downstream components.
103
+ The following is an example of how you can create two routes that feed three downstream components.
104
104
105
105
It is worth noting that a single route can feed multiple downstream components.
106
106
@@ -110,7 +110,7 @@ components: transforms: route: {
110
110
inputs: [ some_source ]
111
111
type: route
112
112
route:
113
- foo-exists: exists(.foo)
113
+ foo-exists: ' exists(.foo)'
114
114
foo-doesnt-exist: '!exists(.foo)'
115
115
remap-route-1:
116
116
type: remap
@@ -140,13 +140,13 @@ components: transforms: route: {
140
140
foo: X
141
141
outputs:
142
142
- extract_from: remap-route-1
143
- my-routes :
143
+ conditions :
144
144
- type: vrl
145
145
source: |
146
146
assert!(exists(.foo))
147
147
assert_eq!(.route, "route 1")
148
148
- extract_from: remap-route-3
149
- my-routes :
149
+ conditions :
150
150
- type: vrl
151
151
source: |
152
152
assert!(exists(.foo))
@@ -159,12 +159,11 @@ components: transforms: route: {
159
159
bar: X
160
160
outputs:
161
161
- extract_from: remap-route-2
162
- my-routes :
162
+ conditions :
163
163
- type: vrl
164
164
source: |
165
165
assert!(!exists(.foo))
166
166
assert_eq!(.route, "route 2")
167
-
168
167
```
169
168
"""
170
169
}
You can’t perform that action at this time.
0 commit comments