-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhabits.schema.graphql
88 lines (78 loc) · 1.44 KB
/
habits.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
type CreateHabit {
habit: HabitType
}
type DeleteHabit {
habit: HabitType
}
type HabitType {
"I will ..."
behavior: String!
"Celebrate by ..."
celebration: String!
celebrationString: String
"The color coding of the habit to let you group them."
color: HabitsHabitColorChoices!
habitString: String
id: ID!
"After I ..."
prompt: String!
"The habit status indicates to what degree the behavior is integrated into your life."
status: HabitsHabitStatusChoices!
}
type Mutation {
createHabit(habitData: HabitInput!): CreateHabit
deleteHabit(id: ID): DeleteHabit
updateHabit(habitData: HabitInput!): UpdateHabit
}
type Query {
allHabits: [HabitType]
habit(habitId: Int): HabitType
}
type UpdateHabit {
habit: HabitType
}
"An enumeration."
enum HabitsHabitColorChoices {
"Blue"
BLUE
"Gray"
GRAY
"Green"
GREEN
"Indigo"
INDIGO
"Light-blue"
LIGHTBLUE
"Orange"
ORANGE
"Pink"
PINK
"Red"
RED
"Violet"
VIOLET
"Yellow"
YELLOW
}
"An enumeration."
enum HabitsHabitStatusChoices {
"Focused"
FOCUSED
"Not active"
INACTIVE
"Integrated"
INTEGRATED
"Slipping"
REWORK
}
input HabitInput {
behavior: String
celebration: String
id: ID
prompt: String
}