orlandos-nl / MongoKitten

Native MongoDB driver for Swift, written in Swift

Home Page:https://orlandos.nl/docs/mongokitten/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support $dateFromString operator for aggregation

popaaaandrei opened this issue · comments

Is your feature request related to a problem? Please describe.
It would be nice if we could support the $dateFromString operator. It would simplify the date conversion.

https://docs.mongodb.com/manual/reference/operator/aggregation/dateFromString/

Advocate of the devil here, but what prevents you from:

  • Making a date locally?
  • Using the operator in a "raw"/custom stage?

I was thinking of the ways I could speed up date conversion (Mongo native vs Vapor), but I admit I didn't read the raw docs :D