Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(JP) FIX DateTime with min and max operators (#4598) #4599

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/manuals.jp/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ PUT /v2/entities/E/attrs/A

属性値は変更されません。

数値とは別に、他の値タイプ (文字列など) がサポートされています。
数値とは別に、他の値タイプ (文字列や `DateTime` など) がサポートされています。

<a name="max"></a>

Expand Down Expand Up @@ -1316,7 +1316,7 @@ PUT /v2/entities/E/attrs/A

属性値は変更されません。

数値とは別に、他の値タイプ (文字列など) がサポートされています。
数値とは別に、他の値タイプ (文字列や `DateTime` など) がサポートされています。

<a name="push"></a>

Expand Down Expand Up @@ -1589,7 +1589,8 @@ PUT /v2/entities/E/attrs/A

更新演算子は、エンティティの作成または置換操作で使用できます。特に:

* 数値演算子は 0 を基準とします。たとえば、`{"$inc": 4}` の結果は 4、`{$mul: 1000}` の結果は 0 になります
* 数値演算子は 0 を基準とします。たとえば、`{"$inc": 4}` の結果は 4、`{"$mul": 1000}` の結果は 0 になります
* `$min` または `$max` が使用される場合、エポック時間 (`"1970-01-01T00:00:00Z"`) が `DateTime` の参照として使用されます
* `$set` は空のオブジェクト (`{}`) を参照として受け取ります。たとえば、`"$set": {"X": 1}` は単に `{"X": 1}` になります
* `$push` と `$addToSet` は空の配列 (`[]`) を参照として受け取ります。たとえば、`{"$push": 4}` は `[ 4 ]` になります
* `$pull`、`$pullAll`、および `$unset` は無視されます。これは、演算子が使用される属性がエンティティ内に作成されないことを意味します。
Expand Down
Loading