Last active
June 17, 2022 18:27
-
-
Save reselbob/da7acb06f226abc7912a4cbb657583db to your computer and use it in GitHub Desktop.
simple-graphql-schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
cool!