Skip to content

Commit 62356ec

Browse files
authored
remove duplicated array merge example (#614)
Signed-off-by: liuxiong <[email protected]>
1 parent 5416d5b commit 62356ec

File tree

1 file changed

+0
-57
lines changed

1 file changed

+0
-57
lines changed

specification.md

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -957,63 +957,6 @@ should produce state data:
957957
}
958958
```
959959

960-
To give an example, merging:
961-
962-
```json
963-
{
964-
"customers": [
965-
{
966-
"name": "John",
967-
"address": "1234 street",
968-
"zip": "12345"
969-
},
970-
{
971-
"name": "Jane",
972-
"address": "4321 street",
973-
"zip": "54321"
974-
}
975-
]
976-
}
977-
```
978-
979-
into state data:
980-
981-
```json
982-
{
983-
"customers": [
984-
{
985-
"name": "Michael",
986-
"address": "6789 street",
987-
"zip": "6789"
988-
}
989-
]
990-
}
991-
```
992-
993-
should produce state data:
994-
995-
```json
996-
{
997-
"customers": [
998-
{
999-
"name": "Michael",
1000-
"address": "6789 street",
1001-
"zip": "6789"
1002-
},
1003-
{
1004-
"name": "John",
1005-
"address": "1234 street",
1006-
"zip": "12345"
1007-
},
1008-
{
1009-
"name": "Jane",
1010-
"address": "4321 street",
1011-
"zip": "54321"
1012-
}
1013-
]
1014-
}
1015-
```
1016-
1017960
Merging number types should be done by overwriting the data from events data/action results into the merging element of the state data.
1018961
For example merging action results:
1019962

0 commit comments

Comments
 (0)