-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
68 lines (58 loc) · 1.31 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
schema {
mutation: RootMutationType
query: RootQueryType
}
type Query {
me: User
verifyrefreshToken(refreshToken: String!): User
verifySessionToken(sessionToken: String!): User
listTextPosts: [TextPost]
unsafeCheckIfUserCanCheckIn: Boolean
listTransactions: [Transaction]
}
type Mutation {
register(email: String!, password: String!): User
getrefreshFromEmailToken(emailToken: String!): String
getrefreshToken(email: String!, password: String!, deviceName: String!): String
renewrefreshToken(refreshToken: String!): String
getSessionToken(refreshToken: String!): String
renewSessionToken(sessionToken: String!): String
createProfile(username: String!): Profile
createFollow(followedId: ID!): Follow
createTextPost(body: String!): TextPost
createMoment(type: String!): Moment
createWeeklyCheckin(valence: String!): WeeklyCheckIn
buySticker(stickerType: ID!): Transaction
}
type StickerType {
name: String
url: String
}
type Transaction {
stickerType: StickerType
change: Int
}
type TextPost {
body: String
user: User
}
type WeeklyCheckIn {
year: Int
weekNumber: Int
}
type Moment {
type: String
user: User
}
type Profile {
username: String
}
type User {
email: String
mainProfile: Profile
altProfile: [Profile]
}
type Follow {
follower: Profile
followee: Profile
}