Skip to content

Instantly share code, notes, and snippets.

@mylons
Created April 29, 2020 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mylons/32b64174f4eec5be158939d57285dee8 to your computer and use it in GitHub Desktop.
Save mylons/32b64174f4eec5be158939d57285dee8 to your computer and use it in GitHub Desktop.
type Corporation {
name: String!
mountains: [Mountain!]!
}
type Mountain {
name: String!
lifts: [Lift!]!
trails: [Trail!]!
employees: [Employee!]!
}
type Employee {
name: String!
}
type Lift {
trails: [Trail!]!
status: LiftStatus!
name: String!
}
type Trail {
difficulty: TrailDifficulty!
status: TrailStatus!
lift: Lift!
name: String!
}
enum TrailStatus {
OPEN
CLOSED
}
enum TrailDifficulty {
Green
Blue
Black
}
enum LiftStatus {
OPEN
CLOSED
WINDHOLD
}
type Query {
getMountain(name: String!): Mountain!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment