A prototype GraphQL server which uses the cars from GT Sports (video game). A technology demonstration leveraging the node microservices model provided by ZEIT Now.
Underneath, the resolvers use 2 different mock servers:
To try this locally, run the following:
yarn
now dev
The now dev
command allows you to test the ZEIT Now app locally.
- /graphql - the playground
Here's the current schema:
type Query {
solution: Solution
cars: [GTSport]
exotics: [GTSport]
groups: [String]
makes: [String]
colors(count: Int!): [String]
hash(count: Int!): [String]
lorem(count: Int!): [String]
slug(count: Int!): String
uuid(count: Int!): [String]
}
type Solution {
id: String
data: DealerGroup
summary: GroupSummary
}
type DealerGroup {
dealers: [Dealer]
}
type Dealer {
dealerId: String
name: String
vehicles: [Vehicle]
}
type GTSport {
year: Int
make: String
model: String
group: String
}
type Vehicle {
vin: String
year: Int
make: String
model: String
group: String
color: String
}
type GroupSummary {
groups: [String]
makes: [String]
vins: [String]
counts: GroupCounts
}
type GroupCounts {
dealers: Int
groups: Int
makes: Int
vehicles: Int
}
- Richard Hess
- eswat2.github.io