Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (39 sloc) 600 Bytes
schema {
query: Query
mutation: Mutation
}
type Query {
bikes: [Bike]
bikesByType(type: BikeType!): [Bike]
}
type Mutation {
newBike(bike: BikeInput!): Bike
}
type Bike {
id: ID
type: BikeType
brand: String
size: String
year: Int
price: BigDecimal
addedDateTime: DateTime
}
input BikeInput {
type: BikeType!
brand: String!
size: String!
year: Int!
price: BigDecimal
}
enum BikeType {
ROAD
TOURING
TRIAL
TRACK
MOUNTAIN
HYBRID
BMX
}
# Format: "yyyy-MM-dd HH:mm:ss Z"
scalar DateTime
scalar BigDecimal
You can’t perform that action at this time.