Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment