Skip to content

Instantly share code, notes, and snippets.

@reselbob
Last active June 17, 2022 18:27
Show Gist options
  • Save reselbob/da7acb06f226abc7912a4cbb657583db to your computer and use it in GitHub Desktop.
Save reselbob/da7acb06f226abc7912a4cbb657583db to your computer and use it in GitHub Desktop.
simple-graphql-schema
enum Level {
LOW
MEDIUM
HIGH
}
enum Season {
SUMMER
AUTUMN
WINTER
SPRING
}
type Animal {
name: String
legs: Int
age: Int
canFly: Boolean
}
type Flower {
name: String
bloomsIn: Season
color: String
waterNeeds: Level
}
type Car {
make: String
model: String
year: Int
}
enum Level {
LOW
MEDIUM
HIGH
}
enum Season {
SUMMER
AUTUMN
WINTER
SPRING
}
type Animal {
name: String
legs: Int
age: Int
canFly: Boolean
}
type Flower {
name: String
bloomsIn: Season
color: String
waterNeeds: Level
}
type Car {
make: String
model: String
year: Int
}
type Query {
getAnimals: [Animal]
getFlowers: [Flower]
getCars: [Car]
}
@catharyna-angela
Copy link

cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment