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

Feature: MongoDB - add support for $date and relative dates. #920

Merged
merged 3 commits into from Mar 14, 2016

Conversation

arikfr
Copy link
Member

@arikfr arikfr commented Mar 13, 2016

This pull request adds two imporvements to our MongoDB query parsing:

  • Full support for MongoDB Extended JSON, which has $date that can replace our ISODate implementation.
  • Relative dates support: passing an object of the form: {"$relative_ts": "one hour ago"} will result in a datetime.datetime object that represents one hour ago at the time of the query execution.

@arikfr
Copy link
Member Author

arikfr commented Mar 13, 2016

@erans wdyt?

@erans
Copy link
Contributor

erans commented Mar 14, 2016

Looks good. It's actually a cool that Mongo doesn't have (yet) :-)

arikfr added a commit that referenced this pull request Mar 14, 2016
Feature: MongoDB - add support for $date and relative dates.
@arikfr arikfr merged commit dd5c186 into master Mar 14, 2016
@arikfr arikfr deleted the mongo_improvements branch July 16, 2016 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants