Skip to content

Commit

Permalink
(JP) FIX add new push cases in doc (telefonicaid#4627)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisuda committed Oct 24, 2024
1 parent b24ecae commit b996e03
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/manuals.jp/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,30 @@ PUT /v2/entities/E/attrs/A

属性Aの値を `[1, 2, 3, 3]` に変更します。

前回の結果の後に次のリクエストが実行される場合:

```
PUT /v2/entities/E/attrs/A
{
"value": { "$push": { "$each": [4, 5]} },
"type": "Array"
}
```

属性 A の値は `[1, 2, 3, 3, 4, 5]` に変更されます。

前の結果の後に次のリクエストが実行される場合:

```
PUT /v2/entities/E/attrs/A
{
"value": { "$push": { "$each": [ -1, 0 ], "$position": 0} },
"type": "Array"
}
```

属性 A の値は `[-1, 0, 1, 2, 3, 3, 4, 5]` に変更されます。

<a name="addtoset"></a>

#### `$addToSet`
Expand Down

0 comments on commit b996e03

Please sign in to comment.