Files
kami-parse-server/spec
marvelm 6f1fe89948 Relative time queries (#4289)
* Add relative time queries

* Encode successful result

* Add integration test

* Add more error cases

* Remove unnecessary new Date

* Error when time has both 'in' and 'ago'

* naturalTimeToDate -> relativeTimeToDate

* Add $relativeTime operator

* Throw error if $relativeTime is invalid

* Add integration test for invalid relative time

* Exclude $exists query

* Only run integration tests on MongoDB

* Add it_only_db test helper
bd2ea87c1d/CONTRIBUTING.md (L23)

* Handle where val might be null or undefined

* Add integration test for multiple results

* Lowercase text before processing

* Always past if not future

* Precompute seconds multiplication

* Add shorthand for interval
hr, hrs
min, mins
sec, secs

* Throw error if $relativeTime is used with $exists, $ne, and $eq

* Improve coverage for relativeTimeToDate

* Add test for erroring on floating point units

* Remove unnecessary dropDatabase function

* Unit test $ne, $exists, $eq

* Verify field type

* Fix unit test for $exists
Unnest query object
2017-10-26 16:23:27 -04:00
..
2016-05-19 13:38:16 -07:00
2016-04-04 20:02:34 -04:00
2017-10-26 16:23:27 -04:00
2017-10-26 16:23:27 -04:00
2017-09-04 20:47:49 -04:00
2016-02-29 18:55:14 -05:00
2017-02-21 15:06:45 -05:00
2016-02-17 08:06:30 -05:00
2016-03-18 12:32:31 -07:00
2016-08-07 20:02:53 -07:00