Skip to content

Commit 0b5934b

Browse files
author
Daniel Stinson-Diess
authored
docs: update v2 migration guide (#276)
1 parent 25dfb73 commit 0b5934b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MIGRATION.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ sub.cnd.all([
8989

9090
#### `meta.for_each` Condition
9191

92-
This is replaced by the `meta.all`, `meta.any`, and `meta.none` conditions. If the `object.source_key` value is an array, then the data is treated as a list of elements.
92+
This is replaced by the `meta.all`, `meta.any`, and `meta.none` conditions. If the `object.source_key` value is an array, then the data is treated as a list of elements.
9393

9494
v1.x.x:
9595

@@ -104,10 +104,10 @@ sub.cnd.meta.for_each({
104104
v2.x.x:
105105

106106
```jsonnet
107-
sub.cnd.meta.any([{
107+
sub.cnd.meta.any({
108108
object: { source_key: 'field' },
109109
conditions: [ sub.cnd.str.eq({ value: 'FOO' }) ],
110-
}])
110+
})
111111
```
112112

113113
#### `meta.negate` Condition
@@ -184,8 +184,8 @@ v2.x.x:
184184
sub.tf.meta.switch({ cases: [
185185
{
186186
condition: sub.cnd.str.eq({ obj: { source_key: 'field' }, value: 'FOO' }),
187-
transforms: [
188-
sub.tf.obj.insert({ object: { target_key: 'field' }, value: 'BAR' })
187+
transforms: [
188+
sub.tf.obj.insert({ object: { target_key: 'field' }, value: 'BAR' })
189189
],
190190
},
191191
]})
@@ -247,7 +247,7 @@ sub.tf.send.aws.dynamodb.put({
247247

248248
The `enrich.aws.dynamodb` transform was renamed to `enrich.aws.dynamodb.query`, and had these additional changes:
249249
- `PartitionKey` and `SortKey` now reference the column names in the DynamoDB table and are nested under the `Attributes` field.
250-
- By default, the value retrieved from `Object.SourceKey` is used as the `PartitionKey` value. If the `SortKey` is provided and the value from `Object.SourceKey` is an array, then the first element is used as the `PartitionKey` value and the second element is used as the `SortKey` value.
250+
- By default, the value retrieved from `Object.SourceKey` is used as the `PartitionKey` value. If the `SortKey` is provided and the value from `Object.SourceKey` is an array, then the first element is used as the `PartitionKey` value and the second element is used as the `SortKey` value.
251251
- The `KeyConditionExpression` field was removed because this is now a derived value.
252252

253253
v1.x.x:

0 commit comments

Comments
 (0)