Aggregate supports group by date fields (#5538)

* it actually supports group by date fields

* Changing the field name again to see Travis logs

* Adding match stage to the test

* Adding test for group by date fields on postgres
This commit is contained in:
Antonio Davi Macedo Coelho de Castro
2019-04-26 18:33:03 -07:00
committed by Diamond Lewis
parent 43c41925a2
commit db994ed473
2 changed files with 51 additions and 17 deletions

View File

@@ -765,12 +765,6 @@ export class MongoStorageAdapter implements StorageAdapter {
maxTimeMS: this._maxTimeMS,
})
)
.catch(error => {
if (error.code === 16006) {
throw new Parse.Error(Parse.Error.INVALID_QUERY, error.message);
}
throw error;
})
.then(results => {
results.forEach(result => {
if (result.hasOwnProperty('_id')) {