You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operator $min doesn't work to update an existing attribute defined with DateTime and using it for the update as well, returning the following error when trying to make an update: {"error":"BadRequest","description":"date has invalid format"}
This enables some uses cases for date updates coming from IoTA
How to reproduce it
For an existing entity having an attribute using type DateTime and named dateAttr, updating it like this:
Bug description
Operator
$min
doesn't work to update an existing attribute defined withDateTime
and using it for the update as well, returning the following error when trying to make an update:{"error":"BadRequest","description":"date has invalid format"}
This enables some uses cases for date updates coming from IoTA
How to reproduce it
For an existing entity having an attribute using type
DateTime
and nameddateAttr
, updating it like this:Expected behavior
The oldest (minimum) date should be stored in the CB
Additional information
Mongo DB supports the use of this operator to compare dates:
https://www.mongodb.com/docs/manual/reference/operator/update/min/#use--min-to-compare-dates
The text was updated successfully, but these errors were encountered: