Using Fongo for my integration test for the DB layer and it works GREAT!
However I'm testing aggregation method, doing date transformation and the projection doesn't work like on real mongo DB.
I'm using Spring Mongo JPA criteria
project().andExpression("dateToString('%Y-%m-%d', 'myMongoField')").as("creationDate"));
Greetings,
Using Fongo for my integration test for the DB layer and it works GREAT!
However I'm testing aggregation method, doing date transformation and the projection doesn't work like on real mongo DB. I'm using Spring Mongo JPA criteria
project().andExpression("dateToString('%Y-%m-%d', 'myMongoField')").as("creationDate"));
Fongo returns :
{ "$dateToString" : { "date" : { "$date" : "2018-02-11T19:02:59.697Z"}}}
Mongo returns :2018-02-11