space-cloud icon indicating copy to clipboard operation
space-cloud copied to clipboard

Add operator to increment DateTime fields

Open sharadregoti opened this issue 4 years ago • 3 comments

The problem faced currently?

How can we solve it?

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍

sharadregoti avatar Jul 04 '20 15:07 sharadregoti

Does this work for MongoDB? Never thought _inc could work for datetime😅

HeyItsJs avatar Jul 04 '20 16:07 HeyItsJs

$inc in mongo only works with number fieds. When i was doing integration testing, that time i encountered this error., so I thought this could be a useful feature.

sharadregoti avatar Jul 05 '20 04:07 sharadregoti

I think we should use the _inc operator since that is meant only for numeric fields. We can add another operator for incrementing datetimes.

YourTechBud avatar Jul 05 '20 07:07 YourTechBud