How to delete objects from `notifications` array after certain amount of time in mongoDB?
Or somebody tell me a better approach
3 Replies
maybe look at "mongodb TTL"
TTL deletes the whole document
I dont want that
what if you have notifications as it's own document
additionally with an author id