I have a question about querying data in MongoDB using the aggregate framework. Originally, my data was structured like this:
[
{
created_at: "2014-03-31T22:30:48.000Z",
id: 450762158586880000,
_id: "5339ec9808eb125965f2eae1"
}
]
Now, my data looks like this:
{
"data": {
"interaction": {
"created_at": "Wed, 09 Apr 2014 14:38:16 +0000"
}
},
"_id": {
"$oid": "53455b59edcd5e4e3fdd4ebb"
}
}
In the past, I accessed created_at
field directly with a mapper function. However, with the new structure, I tried to access it as
this.data.interaction.created_at.getTime()
, but it didn't work as expected. Any help would be appreciated. Thank you.