mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
make some types optional to avoid needing to typecast
This commit is contained in:
@@ -6,11 +6,11 @@ type Query {
|
|||||||
type System {
|
type System {
|
||||||
id: ID!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
routes: [Route!]!
|
routes: [Route!]
|
||||||
route(id: ID): Route
|
route(id: ID): Route
|
||||||
stops: [Stop!]!
|
stops: [Stop!]
|
||||||
stop(id: ID): Stop
|
stop(id: ID): Stop
|
||||||
shuttles: [Shuttle!]!
|
shuttles: [Shuttle!]
|
||||||
shuttle(id: ID): Shuttle
|
shuttle(id: ID): Shuttle
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18,9 +18,9 @@ type Route {
|
|||||||
name: String!
|
name: String!
|
||||||
id: ID!
|
id: ID!
|
||||||
system: System!
|
system: System!
|
||||||
orderedStops: [OrderedStop!]!
|
orderedStops: [OrderedStop!]
|
||||||
nextOrderedStop(forStopId: ID): OrderedStop
|
nextOrderedStop(forStopId: ID): OrderedStop
|
||||||
shuttles: [Shuttle!]!
|
shuttles: [Shuttle!]
|
||||||
polylineCoordinates: [Coordinates!]!
|
polylineCoordinates: [Coordinates!]!
|
||||||
color: String!
|
color: String!
|
||||||
}
|
}
|
||||||
@@ -37,8 +37,8 @@ type Stop {
|
|||||||
name: String!
|
name: String!
|
||||||
coordinates: Coordinates!
|
coordinates: Coordinates!
|
||||||
system: System!
|
system: System!
|
||||||
etas: [ETA!]!
|
etas: [ETA!]
|
||||||
orderedStops: [OrderedStop!]!
|
orderedStops: [OrderedStop!]
|
||||||
}
|
}
|
||||||
|
|
||||||
type Coordinates {
|
type Coordinates {
|
||||||
@@ -56,8 +56,8 @@ type Shuttle {
|
|||||||
name: String!
|
name: String!
|
||||||
id: ID!,
|
id: ID!,
|
||||||
coordinates: Coordinates!
|
coordinates: Coordinates!
|
||||||
route: Route!
|
route: Route
|
||||||
system: System!
|
system: System
|
||||||
etas: [ETA!]!
|
etas: [ETA!]
|
||||||
eta(forStopId: ID): ETA
|
eta(forStopId: ID): ETA
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user