Cosmonaut icon indicating copy to clipboard operation
Cosmonaut copied to clipboard

Set Default Collection TTL

Open crazedpeanut opened this issue 5 years ago • 3 comments

It would be nice to include the default TTL setting when creating collections.

The TTL field on a document is not acknowledged if the collection does not have TTL enabled

crazedpeanut avatar Mar 19 '19 23:03 crazedpeanut

Created PR #75

crazedpeanut avatar Mar 19 '19 23:03 crazedpeanut

Hello @Crazedpeanut,

I’m not really sure about this one. Ideally you shouldn’t be provisioning your collections through Cosmonaut to begin with. Cosmonaut just does the bare minimum so you don’t get any errors when initialising. Adding TTL would mean I have to also add every other feature related to collection creation which in return means that we will end up with a quite heavy CosmosStoreSetting object. I would have to look deeper into this one.

Elfocrash avatar Mar 21 '19 15:03 Elfocrash

No stress, alternatively would a delegate to configure the collection be more appropriate? Saves Cosmonaut from having to support every field imaginable

crazedpeanut avatar Mar 21 '19 20:03 crazedpeanut