vapor / fluent-mongo-driver

MongoDB support for Fluent built on MongoKittten.
MIT License
25 stars 11 forks source link

TTL index #52

Closed PanArtemG closed 1 year ago

PanArtemG commented 1 year ago

Hello! How can I create TTL index if I use this library??

0xTim commented 1 year ago

You can cast the database to the MongoKitten database and use that to add the index