joola / joola.sdk

Joola's Software Development Kit (SDK)
https://joo.la
Other
3 stars 3 forks source link

Metricless query returns only last value #123

Closed orweinberger closed 9 years ago

orweinberger commented 10 years ago
var lastActivity = {
    timeframe: 'last_7_days',
    interval: 'day',
    dimensions: ['timestamp', 'custom_email'],
    collection: 'test',
    realtime: true
  };
  joola.query.fetch(lastActivity, function (err, result) {
    console.log(result);
  });

I have the following data:

{
    'timestamp': /* today */
    'custom_email': 'a@a.com'
},
{
    'timestamp': /* today */
    'custom_email': 'b@b.com'
},
{
    'timestamp': /* today */
    'custom_email': 'c@c.com'
}

The query will return only the record containing c@c.com.