Filter day on MongoDB

db.batches.insertMany([
{
    "_id" : ObjectId("5f6134ecf908840018f2e9ea"),
    "status" : "BATCH_PROCESSING",
    "groupId" : 13,
    "type" : "not",
    "finished" : false,
    "scheduledTo" : "2020-09-15T18:50:51-03:00",
    "identifier" : "COLABORADORES",
    "createdAt" : ISODate("2020-09-18T18:41:00-03:00"),
    "__v" : 0
},
{
    "_id" : ObjectId("5f6144d7863bb40018045906"),
    "status" : "BATCH_PROCESSING",
    "groupId" : 13,
    "type" : "not",
    "finished" : false,
    "scheduledTo" : "2020-09-16T19:48:00-03:00",
    "identifier" : "COLABORADORES",
    "createdAt" : ISODate("2020-09-15T19:48:55-03:00"),
    "__v" : 0
},
{
    "_id" : ObjectId("5f617021b985c1001974c3af"),
    "status" : "CANCELED",
    "groupId" : 13,
    "type" : "not",
    "finished" : true,
    "scheduledTo" : "2020-09-15T23:06:00-03:00",
    "identifier" : "COLABORADORES",
    "createdAt" : ISODate("2020-09-18T22:53:37-03:00"),
    "__v" : 0,
    "numberOfLines" : 1
}]
)
Topics: MongoDB

Related Code Examples