Skip to content

Commit

Permalink
Merge pull request telefonicaid#4628 from fisuda/patch
Browse files Browse the repository at this point in the history
(JP) FIX add new push cases in doc (telefonicaid#4627)
  • Loading branch information
fgalan authored Oct 24, 2024
2 parents b24ecae + b996e03 commit 4c28083
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 4c28083

Please sign in to comment.