-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 https://github.com/parse-community/parse-server/blame/bd2ea87c1d508efe337a1e8880443b1a52a8fb81/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
- Loading branch information
1 parent
1dd58b7
commit 6f1fe89
Showing
5 changed files
with
330 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters