lawjolla
11/22/2017, 5:15 PMquery { averageTimeToSale(from: date, to: date) { timeInDays}} and the API gateway calls to the CRUD API query { vehicles(soldDate > x and < y) { dateonline datesold}} and a function manually parses the data to return timeInDays
2. API gateway to a webhook that queries the database directly, e.g. SELECT AVG(DATEDIFF(sold, online)) from vehicles WHERE ... ?
Or am I missing the boat entirely?