These are chat archives for Automattic/mongoose

2nd
Nov 2017
KARTHIKEYAN A
@karthikeyana__twitter
Nov 02 2017 04:11
hi any one is there?
Arun Gadag
@arun-awnics
Nov 02 2017 05:24
Hello
Good morning
Dennis Belany
@azarus
Nov 02 2017 06:18
Hi
Justin Lazaro
@juztinlazaro
Nov 02 2017 08:00
Hi, got question about how can i delete the data in document field in specific of time,
example, i got a user document, and once i generate the token it will automatically remove in 20s
{
    "_id" : ObjectId("59facf4dc6757306200f575e"),
    "username" : "someting",
    "email" : "someting@gmail.com",
    "password" : "$2a$10$Mhg6JQpB5yHTghH3/xq/ues65A8hUD9e4G3A9bxUHryKEQ/aloi3u",
    "tokens" : [ 
        {
            "access" : "auth",
            "token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1OWZhY2Y0ZGM2NzU3MzA2MjAwZjU3NWUiLCJhY2Nlc3MiOiJhdXRoIiwiaWF0IjoxNTA5NjA5MjkzLCJleHAiOjE1MDk2MDkzMTN9.kEgr9j2198LZkrEQas9C_RPdqLLCZtT-HtsowgGxUPk",
            "_id" : ObjectId("59facf4dc6757306200f575f")
        }
    ],
    "__v" : 1
}