-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
45 lines (41 loc) · 1.4 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
extend schema
@link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@key"])
type Query {
"A list of all cookware"
allCookware: [Cookware]
"Find a specific cookware using its name"
cookware(name: String): Cookware
}
"""
Cookware refers to food preparation equipment, such as pots and pans.
"""
type Cookware @key(fields: "name") {
"The name of the cookware, typically includes the material it's made of. For example: aluminum frying pan"
name: String!
"A description of the cookware, what it looks like and what it's typically used for."
description: String
"Detailed instructions on how to clean the cookware"
cleaningInstructions: [String]
}
"""
Utensils refer to tools used for food preparation, such as spatulas and whisks.
"""
type Utensil @key(fields: "name") {
"The name of the kitchen utensil"
name: String!
"A description of the kitchen utensil, what it looks like and what it's typically used for."
description: String
}
"""
Kitchen appliances are machines that assist in cooking, such as blenders and rice cookers.
"""
type Appliance @key(fields: "name brandCompanyName") {
"The name of the kitchen appliance"
name: String!
"The brand of kitchen appliance"
brandCompanyName: String!
"A description of the kitchen appliance, what it looks like and what it's typically used for."
description: String
"Measured in kilowatts per hour (kWh)"
yealyElectricityUse: Int
}