-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtodo.txt
61 lines (46 loc) · 1.18 KB
/
todo.txt
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
todo:
- add model for collaborators
- add model for check-in
functions:
- M: create user (done)
- Q: login (done)
- M: add friend
- Q: get friends
- Q: get my created goals (done)
- Q: get my collab goals
- M: check-in to a specific goal
createUser
login
addFriend
getFriends
getMyCreatedGoals (in getUser)
getMyCollaboratedGoals (in getUser)
getMyNewsFeed
createGoal // creates a goal
updateGoal // updates a goal
collaborateOnGoal // collaborate on goal
goalCheckIn
getGoalCheckIns (in get goal)
// do updates later
// collaborator model:
// -- goal id
// -- user id
// check-in model:
// -- goal id
// -- user id
// -- time
// -- points
type Query {
DONE login(loginInput: LoginInput): AuthData!
DONE getUser(userId: ID!): User
DONE getNewsFeed(userId: ID!): [Goal!]!
}
type Mutation {
DONE createUser(userInput: UserInput): User
DONE addFriend(userId: ID!, friendId: ID!): User
DONE createGoal(userId: ID!, goalInput: GoalInput): Goal
DONE completeGoal(userId: ID!, goalInput: GoalInput): Goal
DONE collaborateOnGoal(userId: ID!, goalId: ID!): Goal
goalCheckIn(userId: ID!, goalId: ID!): CheckIn
likeGoal(userId: ID!, goalId: ID!): Goal
}s