I need help with running a Distinct, Count and Where query in Mongo. Collection is called 'trackedevents'
{
Type: 'Asset Search',
User: 'ABC'
Timestamp: '26/01/2015'
},
{
Type: 'Asset Search',
User: 'DEF'
Timestamp : '27/01/2015'
}
What I need help with is getting mongo to give me a Count of Unique Users within a certain Timestamp range where the Type is 'Asset Search'
I could do this in SQL relatively easily but mongo just feels more convoluted. Can some of the experts here help me with this.