-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathlogistics.graphqls
More file actions
56 lines (48 loc) · 1.11 KB
/
logistics.graphqls
File metadata and controls
56 lines (48 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
type Customer {
id: Float!
lastUpdated: DateTime!
email: String!
phone: String!
shipments(limit: Int = 10, offset: Int = 0): [Shipment!]
statistics(limit: Int = 10, offset: Int = 0): [Statistics!]
}
"An RFC-3339 compliant DateTime Scalar"
scalar DateTime
"A 64-bit signed integer"
scalar Long
type Query {
Shipment(id: Long!, limit: Int = 10, offset: Int = 0): [Shipment!]
Vehicle(limit: Int = 10, offset: Int = 0): [Vehicle!]
Customer(email: String, id: Long, limit: Int = 10, offset: Int = 0): [Customer!]
}
type Shipment {
id: Long!
lastUpdated: DateTime!
origin: String!
lat: Float!
lon: Float!
weight: Float!
estimatedDelivery: DateTime!
customerId: Float!
locations(limit: Int = 10, offset: Int = 0): [ShipmentLocation!]
}
type ShipmentLocation {
timestamp: DateTime!
shipmentId: Float!
vehicleId: Float!
vehicleStatuses(limit: Int = 10, offset: Int = 0): [VehicleStatus!]
}
type Vehicle {
id: Float!
type: String!
capacity: Float!
}
type VehicleStatus {
timestamp: DateTime!
lat: Float!
lon: Float!
vehicleId: Float!
}
type Statistics {
shipmentCount: Float!
}