eq('sensor_id', 1) .gt('time', new Date(Date.now() - 60 * 60 * 1000)) // past hour .group('hour') if (error) { console.error(error) } else { console.log(data) } This will return an array of objects, where each object represents a row in the result set. The hour and...