I'm getting started with RethinkDB and I'm having some trouble understanding what's going on with some queries I'm running.
The problem is querying objects with date time types from a NodeJS app (using the rethinkdbdash driver) which exposes a JSON API. If I query my objects individually like:
db.table('apples').max('timestamp');
I get JavaScript Dates for timestamp fields, while if I run a group by operator in the query like in:
db.table('apples').group('type').max('timestamp');
I get date time pseudotypes (I think this is the correct name) for the same timestamp fields instead. Something like:
{
"$reql_type$": "TIME",
"epoch_time": 1423077646.772,
"timezone": "-07:00"
}
Is this the expected behaviour? What is the logic behind it?
I would like to return serialized iso8601 dates in my JSON and not this data type to make parsing transparent to clients.
thanks,
UPDATE This was a known issue for versions prior to 2.2.7. Fixed here.