mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Update schema with historical average data for parking structure.
This commit is contained in:
@@ -30,6 +30,20 @@ type ParkingStructure {
|
||||
coordinates: Coordinates!
|
||||
address: String!
|
||||
updatedTime: DateTime
|
||||
|
||||
historicalAverages(input: HistoricalParkingAverageQueryInput): [HistoricalParkingAverageQueryResult!]
|
||||
}
|
||||
|
||||
type HistoricalParkingAverageQueryResult {
|
||||
from: DateTime!
|
||||
to: DateTime!
|
||||
averageSpotsAvailable: Int!
|
||||
}
|
||||
|
||||
input HistoricalParkingAverageQueryInput {
|
||||
from: DateTime!
|
||||
to: DateTime!
|
||||
intervalMs: Int!
|
||||
}
|
||||
|
||||
type Route {
|
||||
|
||||
Reference in New Issue
Block a user