mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
update graphql schema
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# Base types
|
|
||||||
type System {
|
type System {
|
||||||
id: ID!
|
id: ID!
|
||||||
name: String!
|
name: String!
|
||||||
@@ -8,6 +7,19 @@ type System {
|
|||||||
stop(id: ID): Stop
|
stop(id: ID): Stop
|
||||||
shuttles: [Shuttle!]
|
shuttles: [Shuttle!]
|
||||||
shuttle(id: ID): Shuttle
|
shuttle(id: ID): Shuttle
|
||||||
|
|
||||||
|
# TODO: Implement these in system resolvers
|
||||||
|
parkingStructures: [ParkingStructure!]
|
||||||
|
parkingStructure(id: ID): ParkingStructure!
|
||||||
|
}
|
||||||
|
|
||||||
|
type ParkingStructure {
|
||||||
|
id: ID!
|
||||||
|
name: String!
|
||||||
|
capacity: Int!
|
||||||
|
spotsAvailable: Int!
|
||||||
|
coordinates: Coordinates!
|
||||||
|
address: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type Route {
|
type Route {
|
||||||
|
|||||||
Reference in New Issue
Block a user